Work around missing move operations in MSVC12

This commit is contained in:
Jason Turner
2014-10-05 21:53:44 -06:00
parent 935e9de19e
commit 58d9e69479
4 changed files with 9 additions and 3 deletions

View File

@@ -61,9 +61,10 @@ namespace chaiscript
Data(const Data &) = delete;
#if !defined(_MSC_VER) || _MSC_VER != 1800
Data(Data &&) = default;
Data &operator=(Data &&rhs) = default;
#endif
Type_Info m_type_info;
chaiscript::detail::Any m_obj;
@@ -172,9 +173,10 @@ namespace chaiscript
{
}
#if !defined(_MSC_VER) || _MSC_VER != 1800
Boxed_Value(Boxed_Value&&) = default;
Boxed_Value& operator=(Boxed_Value&&) = default;
#endif
Boxed_Value(const Boxed_Value&) = default;
Boxed_Value& operator=(const Boxed_Value&) = default;