summaryrefslogtreecommitdiff
path: root/zen/string_base.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:50:33 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:50:33 +0200
commitb6d9c83c8386c83f0e2c3ffeaded184f60635bb4 (patch)
treeb404f53d08361eef07350d21f4002f8b1def711c /zen/string_base.h
parent6.6 (diff)
downloadFreeFileSync-b6d9c83c8386c83f0e2c3ffeaded184f60635bb4.tar.gz
FreeFileSync-b6d9c83c8386c83f0e2c3ffeaded184f60635bb4.tar.bz2
FreeFileSync-b6d9c83c8386c83f0e2c3ffeaded184f60635bb4.zip
6.7
Diffstat (limited to 'zen/string_base.h')
-rw-r--r--zen/string_base.h6
1 files changed, 3 insertions, 3 deletions
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 <class S> 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);
bgstack15