fix clang build

This commit is contained in:
Neargye 2018-09-01 15:24:52 +05:00
parent 43b3a224d3
commit 39f2036915

View file

@ -195,7 +195,7 @@ class cstring final {
} }
friend std::string operator+(cstring lhs, cstring rhs) { friend std::string operator+(cstring lhs, cstring rhs) {
return std::string{lhs} +std::string{rhs}; return std::string{lhs.str_, lhs.size_} + std::string{rhs.str_, rhs.size_};
} }
friend std::ostream& operator<<(std::ostream& os, cstring str) { friend std::ostream& operator<<(std::ostream& os, cstring str) {