mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-05 15:54:39 +02:00
Old EDG workaround
[SVN r15391]
This commit is contained in:
@@ -35,17 +35,17 @@ namespace aux {
|
|||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
yes_tag
|
yes_tag
|
||||||
has_rebind_helper(type_wrapper<T>, BOOST_MSVC_TYPENAME T::rebind*);
|
has_rebind_helper(type_wrapper<T>*, BOOST_MSVC_TYPENAME T::rebind*);
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
no_tag
|
no_tag
|
||||||
has_rebind_helper(type_wrapper<T>, ...);
|
has_rebind_helper(type_wrapper<T>*, ...);
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
struct has_rebind
|
struct has_rebind
|
||||||
{
|
{
|
||||||
BOOST_STATIC_CONSTANT(bool, value =
|
BOOST_STATIC_CONSTANT(bool, value =
|
||||||
sizeof(has_rebind_helper(type_wrapper<T>(), 0))
|
sizeof(has_rebind_helper((type_wrapper<T>*)0, 0))
|
||||||
== sizeof(yes_tag)
|
== sizeof(yes_tag)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user