forked from boostorg/type_traits
Add some workarounds for GCC-4.4.x
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
#include <boost/type_traits/integral_constant.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_DECLTYPE) && !BOOST_WORKAROUND(BOOST_MSVC, < 1800)
|
||||
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_DECLTYPE) && !BOOST_WORKAROUND(BOOST_MSVC, < 1800) && !BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40500)
|
||||
|
||||
#include <boost/type_traits/is_destructible.hpp>
|
||||
#include <boost/type_traits/is_default_constructible.hpp>
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <boost/type_traits/integral_constant.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_DECLTYPE) && !BOOST_WORKAROUND(BOOST_MSVC, < 1800)
|
||||
#if !defined(BOOST_NO_CXX11_DECLTYPE) && !BOOST_WORKAROUND(BOOST_MSVC, < 1800) && !BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40500)
|
||||
|
||||
#include <boost/type_traits/detail/yes_no_type.hpp>
|
||||
|
||||
|
@ -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