From fcd0d3aaea9b6a312565e95ad191b5bef17dd541 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Jun 2021 10:30:08 +0800 Subject: ... --- computer-network-experiment/Common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'computer-network-experiment/Common.h') diff --git a/computer-network-experiment/Common.h b/computer-network-experiment/Common.h index d2f2e52..a4472c7 100644 --- a/computer-network-experiment/Common.h +++ b/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