From d30e0825ff61e9d8bae68cdfd2798da0badcf255 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sat, 28 Oct 2023 08:29:29 -0400 Subject: add upstream 13.1 --- zen/legacy_compiler.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'zen/legacy_compiler.h') diff --git a/zen/legacy_compiler.h b/zen/legacy_compiler.h index c853b139..fce7fd7d 100644 --- a/zen/legacy_compiler.h +++ b/zen/legacy_compiler.h @@ -32,7 +32,7 @@ namespace std //W(hy)TF is this not standard? https://stackoverflow.com/a/47735624 template inline basic_string operator+(basic_string&& lhs, const basic_string_view rhs) -{ return move(lhs.append(rhs.begin(), rhs.end())); } //the move *is* needed!!! +{ return std::move(lhs.append(rhs.begin(), rhs.end())); } //the move *is* needed!!! //template inline //basic_string operator+(const basic_string& lhs, const basic_string_view& rhs) { return basic_string(lhs) + rhs; } @@ -40,9 +40,6 @@ basic_string operator+(basic_string&& } //--------------------------------------------------------------------------------- -//support for std::string::resize_and_overwrite() - #define ZEN_HAVE_RESIZE_AND_OVERWRITE 1 - namespace zen { double fromChars(const char* first, const char* last); -- cgit