diff --git a/lib/base/string.cpp b/lib/base/string.cpp index 45da41099..4474e4d6b 100644 --- a/lib/base/string.cpp +++ b/lib/base/string.cpp @@ -29,10 +29,12 @@ REGISTER_BUILTIN_TYPE(String, String::GetPrototype()); const String::SizeType String::NPos = std::string::npos; +#ifndef _MSC_VER String::String(Value&& other) { *this = std::move(other); } +#endif /* _MSC_VER */ String& String::operator=(Value&& other) { diff --git a/lib/base/string.hpp b/lib/base/string.hpp index ea1fc837b..2d418c9da 100644 --- a/lib/base/string.hpp +++ b/lib/base/string.hpp @@ -85,7 +85,9 @@ public: : m_Data(std::move(other.m_Data)) { } +#ifndef _MSC_VER String(Value&& other); +#endif /* _MSC_VER */ inline ~String(void) { }