minor
This commit is contained in:
@@ -31,7 +31,7 @@ namespace operations_research {
|
||||
template <class P>
|
||||
std::string ProtobufDebugString(const P& message) {
|
||||
#if defined(__PORTABLE_PLATFORM__)
|
||||
return message.GetTypeName();
|
||||
return std::string(message.GetTypeName());
|
||||
#else // defined(__PORTABLE_PLATFORM__)
|
||||
return message.DebugString();
|
||||
#endif // !defined(__PORTABLE_PLATFORM__)
|
||||
@@ -40,7 +40,7 @@ std::string ProtobufDebugString(const P& message) {
|
||||
template <class P>
|
||||
std::string ProtobufShortDebugString(const P& message) {
|
||||
#if defined(__PORTABLE_PLATFORM__)
|
||||
return message.GetTypeName();
|
||||
return std::string(message.GetTypeName());
|
||||
#else // defined(__PORTABLE_PLATFORM__)
|
||||
return message.ShortDebugString();
|
||||
#endif // !defined(__PORTABLE_PLATFORM__)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
namespace operations_research {
|
||||
|
||||
// True if the plateform supports `double` to std::to_chars().
|
||||
// True if the platform supports `double` to std::to_chars().
|
||||
//
|
||||
// std::to_chars() for double is not yet supported on Emscripten, Android and
|
||||
// iOS; they only implement std::to_chars() for integers.
|
||||
|
||||
Reference in New Issue
Block a user