aboutsummaryrefslogtreecommitdiff
path: root/computer-network-experiment
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-08 10:30:08 +0800
committercrupest <crupest@outlook.com>2021-06-08 10:30:08 +0800
commitfcd0d3aaea9b6a312565e95ad191b5bef17dd541 (patch)
tree8f6cc6f505060e67f31435bdc613a6c159091840 /computer-network-experiment
parentcf1ab8c2f4c083f40afdeeca15c66afc0e05610d (diff)
downloadlife-fcd0d3aaea9b6a312565e95ad191b5bef17dd541.tar.gz
life-fcd0d3aaea9b6a312565e95ad191b5bef17dd541.tar.bz2
life-fcd0d3aaea9b6a312565e95ad191b5bef17dd541.zip
...
Diffstat (limited to 'computer-network-experiment')
-rw-r--r--computer-network-experiment/Common.h4
1 files changed, 3 insertions, 1 deletions
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();