mirror of
https://github.com/boostorg/typeof.git
synced 2025-11-19 08:59:20 +01:00
Modified tests to account for Borland compiler
[SVN r39590]
This commit is contained in:
@@ -8,23 +8,24 @@
|
||||
#include <boost/typeof/typeof.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/mpl/size_t.hpp>
|
||||
|
||||
namespace boost { namespace type_of {
|
||||
|
||||
template<class T, class U>
|
||||
template<class T, class U>
|
||||
struct test_wrapper{};
|
||||
|
||||
template<class T>
|
||||
template<class T>
|
||||
T test_make(T*);
|
||||
|
||||
template<class T>
|
||||
template<class T>
|
||||
struct test
|
||||
{
|
||||
enum {value = boost::is_same<
|
||||
BOOST_STATIC_CONSTANT(std::size_t,value = (boost::is_same<
|
||||
BOOST_TYPEOF_TPL(test_make((test_wrapper<T, int>*)0)),
|
||||
test_wrapper<T, int>
|
||||
>::value
|
||||
};
|
||||
>::value)
|
||||
);
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user