diff --git a/src/ulib/status.cpp b/src/ulib/status.cpp index af1022c..f2d1444 100644 --- a/src/ulib/status.cpp +++ b/src/ulib/status.cpp @@ -66,9 +66,11 @@ StatusCodeToString(StatusCode code) return "UNAVAILABLE"; case StatusCode::kDataLoss: return "DATA_LOSS"; - default: - return "UNEXPECTED_STATUS_CODE=" - + std::to_string(static_cast(code)); + default: { + std::stringstream ss; + ss << "UNEXPECTED_STATUS_CODE=" << static_cast(code); + return ss.str(); + } } }