Fix compatibility with boost <= 1.53

refs #12555
This commit is contained in:
Gunnar Beutner 2016-08-27 12:35:05 +02:00
parent 8f2477db46
commit f1cac2f20a
1 changed files with 16 additions and 0 deletions

View File

@ -100,7 +100,15 @@ public:
{ }
Value(const Value& other) = default;
#if BOOST_VERSION >= 105400
Value(Value&& other) = default;
#else /* BOOST_VERSION */
Value(Value&& other)
{
m_Value.swap(other.m_Value);
}
#endif /* BOOST_VERSION */
inline Value(Object *value)
{
@ -125,7 +133,15 @@ public:
operator String(void) const;
Value& operator=(const Value& other) = default;
#if BOOST_VERSION >= 105400
Value& operator=(Value&& other) = default;
#else /* BOOST_VERSION */
Value& operator=(Value&& other)
{
m_Value.swap(other.m_Value);
}
#endif /* BOOST_VERSION */
bool operator==(bool rhs) const;
bool operator!=(bool rhs) const;