mirror of
https://github.com/boostorg/typeof.git
synced 2025-05-11 21:34:01 +00:00
simplified the test
[SVN r31146]
This commit is contained in:
parent
506c77897d
commit
9f4842e67a
@ -15,14 +15,14 @@ namespace boost { namespace type_of {
|
||||
struct test_wrapper{};
|
||||
|
||||
template<class T>
|
||||
test_wrapper<T, T> test_helper(test_wrapper<T, T>*);
|
||||
T test_make(T*);
|
||||
|
||||
template<class T>
|
||||
struct test
|
||||
{
|
||||
enum {value = boost::is_same<
|
||||
BOOST_TYPEOF_TPL(test_helper(reinterpret_cast<test_wrapper<T, T>*>(0))),
|
||||
test_wrapper<T, T>
|
||||
BOOST_TYPEOF_TPL(test_make((test_wrapper<T, int>*)0)),
|
||||
test_wrapper<T, int>
|
||||
>::value
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user