mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-03 14:54:30 +02:00
Changes needed to make it work when the nested type is void.
[SVN r16169]
This commit is contained in:
@@ -34,8 +34,8 @@
|
||||
template< typename T > \
|
||||
boost::mpl::aux::yes_tag \
|
||||
has_##name##_helper( \
|
||||
boost::mpl::aux::type_wrapper<T>* \
|
||||
, void (*)(BOOST_MSVC_TYPENAME T::name) = 0 \
|
||||
T const volatile* \
|
||||
, boost::mpl::aux::type_wrapper<BOOST_MSVC_TYPENAME T::name>* = 0 \
|
||||
); \
|
||||
\
|
||||
boost::mpl::aux::no_tag has_##name##_helper( \
|
||||
@@ -46,7 +46,7 @@ template< typename T >
|
||||
struct has_##name \
|
||||
{ \
|
||||
BOOST_STATIC_CONSTANT(bool, value = \
|
||||
sizeof((has_##name##_helper)((boost::mpl::aux::type_wrapper<T>*)0)) \
|
||||
sizeof((has_##name##_helper)((T*)0)) \
|
||||
== sizeof(boost::mpl::aux::yes_tag) \
|
||||
); \
|
||||
}; \
|
||||
|
Reference in New Issue
Block a user