forked from boostorg/typeof
binding workarounds added
[SVN r33045]
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
#include <boost/typeof/typeof.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
#include <boost/static_assert.hpp>
|
||||
|
||||
void f()
|
||||
{}
|
||||
@ -6,5 +8,7 @@ void f()
|
||||
template<class T>
|
||||
class x
|
||||
{
|
||||
typedef BOOST_TYPEOF(&f) type;
|
||||
BOOST_STATIC_ASSERT((
|
||||
boost::is_same<BOOST_TYPEOF_TPL(&f), void(*)()>::value
|
||||
));
|
||||
};
|
||||
|
Reference in New Issue
Block a user