This commit is contained in:
Laurent Perron
2025-01-14 15:59:47 +01:00
parent 0d32cb42ca
commit a246657f22
2 changed files with 3 additions and 3 deletions

View File

@@ -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__)

View File

@@ -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.