forked from boostorg/typeof
Workaround for bug in VC7.0
[SVN r2433]
This commit is contained in:
@ -36,6 +36,26 @@
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC,<=1300)
|
||||
|
||||
template<class T>
|
||||
mpl::vector1<T> typeof_test_helper(type<T> const&);
|
||||
|
||||
template<class T>
|
||||
struct typeof_test
|
||||
{
|
||||
static type<T> dummy;
|
||||
enum {value = boost::is_same<
|
||||
BOOST_TYPEOF_TPL(typeof_test_helper(dummy)),
|
||||
mpl::vector1<T>
|
||||
>::value
|
||||
};
|
||||
};
|
||||
|
||||
template<class T>
|
||||
type<T> typeof_test<T>::dummy;
|
||||
|
||||
#else //!BOOST_WORKAROUND(BOOST_MSVC,<=1300)
|
||||
template<class T>
|
||||
mpl::vector1<T> typeof_test_helper();
|
||||
|
||||
@ -49,6 +69,8 @@ struct typeof_test
|
||||
};
|
||||
};
|
||||
|
||||
#endif //BOOST_WORKAROUND(BOOST_MSVC,<=1300)
|
||||
|
||||
#pragma message("started")
|
||||
|
||||
struct x
|
||||
|
Reference in New Issue
Block a user