]> granicus.if.org Git - icinga2/commitdiff
Add another rvalue constructor for the String class
authorGunnar Beutner <gunnar.beutner@netways.de>
Sat, 27 Aug 2016 09:00:04 +0000 (11:00 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sat, 27 Aug 2016 09:00:04 +0000 (11:00 +0200)
refs #12555

lib/base/string.hpp

index f86b29246ccc4b5b54331b416177501922832b6a..38d94974c6cb75b9af7e1d266d534f6631297c22 100644 (file)
@@ -69,6 +69,10 @@ public:
                : m_Data(data)
        { }
 
+       inline String(std::string&& data)
+               : m_Data(data)
+       { }
+
        inline String(String::SizeType n, char c)
                : m_Data(n, c)
        { }