From d9756de78c161c2d33a9d32d2cb1eaa68be1744e Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Jun 2021 10:30:08 +0800 Subject: import(life): ... --- works/life/computer-network-experiment/Common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'works/life/computer-network-experiment/Common.h') 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(); -- cgit v1.2.3