mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Remove using std::string from port.h
Change-Id: I7376f5e7eace22ec1fc05a61eaa858594f08682d
This commit is contained in:
@@ -63,23 +63,23 @@ namespace internal {
|
||||
#endif
|
||||
|
||||
// Return a C++ string.
|
||||
extern string StringPrintf(const char* format, ...)
|
||||
extern std::string StringPrintf(const char* format, ...)
|
||||
// Tell the compiler to do printf format string checking.
|
||||
CERES_PRINTF_ATTRIBUTE(1, 2);
|
||||
|
||||
// Store result into a supplied string and return it.
|
||||
extern const string& SStringPrintf(string* dst, const char* format, ...)
|
||||
extern const std::string& SStringPrintf(std::string* dst, const char* format, ...)
|
||||
// Tell the compiler to do printf format string checking.
|
||||
CERES_PRINTF_ATTRIBUTE(2, 3);
|
||||
|
||||
// Append result to a supplied string.
|
||||
extern void StringAppendF(string* dst, const char* format, ...)
|
||||
extern void StringAppendF(std::string* dst, const char* format, ...)
|
||||
// Tell the compiler to do printf format string checking.
|
||||
CERES_PRINTF_ATTRIBUTE(2, 3);
|
||||
|
||||
// Lower-level routine that takes a va_list and appends to a specified string.
|
||||
// All other routines are just convenience wrappers around it.
|
||||
extern void StringAppendV(string* dst, const char* format, va_list ap);
|
||||
extern void StringAppendV(std::string* dst, const char* format, va_list ap);
|
||||
|
||||
#undef CERES_PRINTF_ATTRIBUTE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user