diff options
-rw-r--r-- | works/life/computer-network-experiment/Common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/works/life/computer-network-experiment/Common.h b/works/life/computer-network-experiment/Common.h index d2f2e52..a4472c7 100644 --- a/works/life/computer-network-experiment/Common.h +++ b/works/life/computer-network-experiment/Common.h @@ -34,7 +34,9 @@ inline auto &error_stream = std::cerr; #define CRUT(string_literal) string_literal
inline String ConvertCharString(std::string_view s) { return String(s); }
-inline std::string ConvertCharStringBack(StringView s) { return {s}; }
+inline std::string ConvertCharStringBack(StringView s) {
+ return std::string(s);
+}
#endif
int Main();
|