forked from boostorg/type_traits
Add some workarounds for GCC-4.4.x
This commit is contained in:
1 parent
04a8a9ecc2
commit
312bf1d8ce
4 files changed
+4
-4
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user