From 6f280f3680e9fad24e00dd63a55577c5409945b3 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 22 Jan 2013 00:09:16 -0800 Subject: Adding the move constructor to BString. --- includes/BString.h | 1 + 1 file changed, 1 insertion(+) (limited to 'includes') 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; } -- cgit v1.2.3