mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-19 02:22:17 +00:00
Add back operator void conversion operators for gcc-4.7
This commit is contained in:
@@ -421,6 +421,9 @@ struct expression<tag, Arg1, void, void, void>
|
||||
result_type r(*this);
|
||||
return static_cast<bool>(r);
|
||||
}
|
||||
#if BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40800)
|
||||
BOOST_MP_FORCEINLINE explicit operator void()const {}
|
||||
#endif
|
||||
# endif
|
||||
#else
|
||||
operator unmentionable_type()const
|
||||
@@ -484,6 +487,9 @@ struct expression<terminal, Arg1, void, void, void>
|
||||
result_type r(*this);
|
||||
return static_cast<bool>(r);
|
||||
}
|
||||
#if BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40800)
|
||||
BOOST_MP_FORCEINLINE explicit operator void()const {}
|
||||
#endif
|
||||
# endif
|
||||
#else
|
||||
operator unmentionable_type()const
|
||||
@@ -551,6 +557,9 @@ struct expression<tag, Arg1, Arg2, void, void>
|
||||
result_type r(*this);
|
||||
return static_cast<bool>(r);
|
||||
}
|
||||
#if BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40800)
|
||||
BOOST_MP_FORCEINLINE explicit operator void()const {}
|
||||
#endif
|
||||
# endif
|
||||
#else
|
||||
operator unmentionable_type()const
|
||||
@@ -629,6 +638,9 @@ struct expression<tag, Arg1, Arg2, Arg3, void>
|
||||
result_type r(*this);
|
||||
return static_cast<bool>(r);
|
||||
}
|
||||
#if BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40800)
|
||||
BOOST_MP_FORCEINLINE explicit operator void()const {}
|
||||
#endif
|
||||
# endif
|
||||
#else
|
||||
operator unmentionable_type()const
|
||||
@@ -716,6 +728,9 @@ struct expression
|
||||
result_type r(*this);
|
||||
return static_cast<bool>(r);
|
||||
}
|
||||
#if BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40800)
|
||||
BOOST_MP_FORCEINLINE explicit operator void()const {}
|
||||
#endif
|
||||
# endif
|
||||
#else
|
||||
operator unmentionable_type()const
|
||||
|
||||
@@ -632,6 +632,9 @@ public:
|
||||
{
|
||||
return !is_zero();
|
||||
}
|
||||
#if BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40800)
|
||||
BOOST_MP_FORCEINLINE explicit operator void()const {}
|
||||
#endif
|
||||
# endif
|
||||
#else
|
||||
typedef bool (self_type::*unmentionable_type)()const;
|
||||
|
||||
Reference in New Issue
Block a user