forked from boostorg/mp11
Remove mp_plus 4.7 test workarounds
This commit is contained in:
@@ -23,16 +23,8 @@ struct X4 {};
|
|||||||
|
|
||||||
template<class T1, class T2> struct F {};
|
template<class T1, class T2> struct F {};
|
||||||
|
|
||||||
#if BOOST_WORKAROUND( BOOST_GCC, < 40800 )
|
|
||||||
|
|
||||||
template<class A, class B> using mp_plus = std::integral_constant<typename std::remove_const<decltype( A::value + B::value )>::type, A::value + B::value>;
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
using boost::mp11::mp_plus;
|
using boost::mp11::mp_plus;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
using boost::mp11::mp_list;
|
using boost::mp11::mp_list;
|
||||||
|
@@ -29,16 +29,8 @@ struct X10 {};
|
|||||||
struct X11 {};
|
struct X11 {};
|
||||||
struct X12 {};
|
struct X12 {};
|
||||||
|
|
||||||
#if BOOST_WORKAROUND( BOOST_GCC, < 40800 )
|
|
||||||
|
|
||||||
template<class A, class B> using mp_plus = std::integral_constant<typename std::remove_const<decltype( A::value + B::value )>::type, A::value + B::value>;
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
using boost::mp11::mp_plus;
|
using boost::mp11::mp_plus;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
using boost::mp11::mp_list;
|
using boost::mp11::mp_list;
|
||||||
|
@@ -29,16 +29,8 @@ using boost::mp11::mp_push_front;
|
|||||||
template<class T, class L> using rev_push_back = mp_push_back<L, T>;
|
template<class T, class L> using rev_push_back = mp_push_back<L, T>;
|
||||||
template<class T, class L> using rev_push_front = mp_push_front<L, T>;
|
template<class T, class L> using rev_push_front = mp_push_front<L, T>;
|
||||||
|
|
||||||
#if BOOST_WORKAROUND( BOOST_GCC, < 40800 )
|
|
||||||
|
|
||||||
template<class A, class B> using mp_plus = std::integral_constant<typename std::remove_const<decltype( A::value + B::value )>::type, A::value + B::value>;
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
using boost::mp11::mp_plus;
|
using boost::mp11::mp_plus;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
using boost::mp11::mp_list;
|
using boost::mp11::mp_list;
|
||||||
|
Reference in New Issue
Block a user