mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-05 15:54:39 +02:00
Attempted IRIX CC workaround
[SVN r15389]
This commit is contained in:
@@ -33,16 +33,16 @@ namespace aux {
|
|||||||
// Rani Sharoni (comp.lang.c++.moderated, 2002-03-17 07:45:09 PST)
|
// Rani Sharoni (comp.lang.c++.moderated, 2002-03-17 07:45:09 PST)
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
yes_tag has_size_helper(type_wrapper<T>, BOOST_MSVC_TYPENAME T::size*);
|
yes_tag has_size_helper(type_wrapper<T>*, BOOST_MSVC_TYPENAME T::size*);
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
no_tag has_size_helper(type_wrapper<T>, ...);
|
no_tag has_size_helper(type_wrapper<T>*, ...);
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
struct has_size
|
struct has_size
|
||||||
{
|
{
|
||||||
BOOST_STATIC_CONSTANT(bool, value =
|
BOOST_STATIC_CONSTANT(bool, value =
|
||||||
sizeof(has_size_helper(type_wrapper<T>(), 0)) == sizeof(yes_tag)
|
sizeof(has_size_helper((type_wrapper<T>*)0, 0)) == sizeof(yes_tag)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user