mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-05 07:44:32 +02:00
@@ -157,11 +157,13 @@ template<> struct trait<T> \
|
|||||||
// applied to partial specialization to fix some apparently random failures
|
// applied to partial specialization to fix some apparently random failures
|
||||||
// (thanks to Daniel Wallin for researching this!)
|
// (thanks to Daniel Wallin for researching this!)
|
||||||
|
|
||||||
namespace boost { namespace mpl { namespace aux {
|
|
||||||
template< typename T > struct msvc71_sfinae_helper { typedef void type; };
|
|
||||||
}}}
|
|
||||||
|
|
||||||
# define BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF(trait, name, default_) \
|
# define BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF(trait, name, default_) \
|
||||||
|
template< typename T > \
|
||||||
|
struct BOOST_PP_CAT(trait, _msvc_sfinae_helper) \
|
||||||
|
{ \
|
||||||
|
typedef void type; \
|
||||||
|
};\
|
||||||
|
\
|
||||||
template< typename T, typename U = void > \
|
template< typename T, typename U = void > \
|
||||||
struct BOOST_PP_CAT(trait,_impl_) \
|
struct BOOST_PP_CAT(trait,_impl_) \
|
||||||
{ \
|
{ \
|
||||||
@@ -172,7 +174,7 @@ struct BOOST_PP_CAT(trait,_impl_) \
|
|||||||
template< typename T > \
|
template< typename T > \
|
||||||
struct BOOST_PP_CAT(trait,_impl_)< \
|
struct BOOST_PP_CAT(trait,_impl_)< \
|
||||||
T \
|
T \
|
||||||
, typename boost::mpl::aux::msvc71_sfinae_helper< typename T::name >::type \
|
, typename BOOST_PP_CAT(trait, _msvc_sfinae_helper)< typename T::name >::type \
|
||||||
> \
|
> \
|
||||||
{ \
|
{ \
|
||||||
BOOST_STATIC_CONSTANT(bool, value = true); \
|
BOOST_STATIC_CONSTANT(bool, value = true); \
|
||||||
|
Reference in New Issue
Block a user