diff options
author | crupest <crupest@outlook.com> | 2021-06-08 10:30:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-08 10:30:08 +0800 |
commit | fcd0d3aaea9b6a312565e95ad191b5bef17dd541 (patch) | |
tree | 8f6cc6f505060e67f31435bdc613a6c159091840 | |
parent | cf1ab8c2f4c083f40afdeeca15c66afc0e05610d (diff) | |
download | life-fcd0d3aaea9b6a312565e95ad191b5bef17dd541.tar.gz life-fcd0d3aaea9b6a312565e95ad191b5bef17dd541.tar.bz2 life-fcd0d3aaea9b6a312565e95ad191b5bef17dd541.zip |
...
-rw-r--r-- | computer-network-experiment/Common.h | 4 |
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();
|