aboutsummaryrefslogtreecommitdiff
path: root/works/life
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
commitd9756de78c161c2d33a9d32d2cb1eaa68be1744e (patch)
treed887d659d14b2b2e0d11b8585074ecbfa37543a3 /works/life
parent68cac85ea58c69301645167f92d94bdb6e360753 (diff)
downloadcrupest-d9756de78c161c2d33a9d32d2cb1eaa68be1744e.tar.gz
crupest-d9756de78c161c2d33a9d32d2cb1eaa68be1744e.tar.bz2
crupest-d9756de78c161c2d33a9d32d2cb1eaa68be1744e.zip
import(life): ...
Diffstat (limited to 'works/life')
-rw-r--r--works/life/computer-network-experiment/Common.h4
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();