diff options
author | Pixel <pixel@nobis-crew.org> | 2013-01-22 00:09:16 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2013-01-22 00:09:16 -0800 |
commit | 6f280f3680e9fad24e00dd63a55577c5409945b3 (patch) | |
tree | 36b618b5eb95f4ef6456429d3bd5fba66f89ff3b /includes | |
parent | 8943c91ea48c4a87dd0e5ae15fefe959f72ae85c (diff) |
Adding the move constructor to BString.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/BString.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/BString.h b/includes/BString.h index f472d85..0cfb8b8 100644 --- a/includes/BString.h +++ b/includes/BString.h @@ -33,6 +33,7 @@ class String : private std::string { String(double d) { set("%g", d); } String(const String & s) : std::string(s) { } String(const std::string & s) : std::string(s) { } + String(String && s) : std::string(s) { } String & set(const char * fmt, va_list) __attribute__((format(printf, 2, 0))); String & set(const char * fmt, ...) __attribute__((format(printf, 2, 3))) { va_list ap; va_start(ap, fmt); set(fmt, ap); va_end(ap); return *this; } |