mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 21:07:22 +02:00
Merge pull request #18 from jfalcou/fix_enable_if_has_type_test
Fix test for enable_if_has_type
This commit is contained in:
@ -48,14 +48,14 @@ struct tester2<T, typename disable_if<is_arithmetic<T> >::type> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <class T, class Enable = void>
|
template <class T, class Enable = void>
|
||||||
class tester3
|
struct tester3
|
||||||
{
|
{
|
||||||
typedef T type;
|
typedef T type;
|
||||||
BOOST_STATIC_CONSTANT(bool, value = false);
|
BOOST_STATIC_CONSTANT(bool, value = false);
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class tester3<T, typename enable_if_has_type<typename T::value_type>::type>
|
struct tester3<T, typename enable_if_has_type<typename T::value_type>::type>
|
||||||
{
|
{
|
||||||
typedef typename T::value_type type;
|
typedef typename T::value_type type;
|
||||||
BOOST_STATIC_CONSTANT(bool, value = true);
|
BOOST_STATIC_CONSTANT(bool, value = true);
|
||||||
|
Reference in New Issue
Block a user