From b6d9c83c8386c83f0e2c3ffeaded184f60635bb4 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 2 Oct 2015 14:50:33 +0200 Subject: 6.7 --- zen/string_base.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'zen/string_base.h') diff --git a/zen/string_base.h b/zen/string_base.h index 2d16e669..a458ef15 100644 --- a/zen/string_base.h +++ b/zen/string_base.h @@ -196,11 +196,11 @@ public: Zbase(const Char* source); //implicit conversion from a C-string Zbase(const Char* source, size_t length); Zbase(const Zbase& source); - Zbase(Zbase&& tmp); + Zbase(Zbase&& tmp); //make noexcept in C++11 explicit Zbase(Char source); //dangerous if implicit: Char buffer[]; return buffer[0]; ups... forgot &, but not a compiler error! //allow explicit construction from different string type, prevent ambiguity via SFINAE template explicit Zbase(const S& other, typename S::value_type = 0); - ~Zbase(); + ~Zbase(); //make noexcept in C++11 //operator const Char* () const; //NO implicit conversion to a C-string!! Many problems... one of them: if we forget to provide operator overloads, it'll just work with a Char*... @@ -241,7 +241,7 @@ public: void push_back(Char val) { operator+=(val); } //STL access Zbase& operator=(const Zbase& source); - Zbase& operator=(Zbase&& tmp); + Zbase& operator=(Zbase&& tmp); //make noexcept in C++11 Zbase& operator=(const Char* source); Zbase& operator=(Char source); Zbase& operator+=(const Zbase& other); -- cgit