Add some workarounds for GCC-4.4.x

This commit is contained in:
jzmaddock committed 2015-07-07 18:16:18 +01:00
1 parent 04a8a9ecc2
commit 312bf1d8ce
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ struct non_copyable_movable
non_copyable_movable(const non_copyable_movable&) = delete;
non_copyable_movable& operator=(const non_copyable_movable&) = delete;
//non_copyable_movable(non_copyable_movable&&) = default;
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1800)
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1800) || BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40500)
non_copyable_movable& operator=(non_copyable_movable&& o)
{
val = std::move(o.val);
+1 -1
View File
@@ -21,7 +21,7 @@ struct non_copyable_movable
non_copyable_movable(int);
non_copyable_movable(const non_copyable_movable&) = delete;
non_copyable_movable& operator=(const non_copyable_movable&) = delete;
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1800)
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1800) || BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40500)
non_copyable_movable(non_copyable_movable&& o) : val(o.val){}
non_copyable_movable& operator=(non_copyable_movable&& o)
{