forked from boostorg/typeof
binding workarounds added
[SVN r33045]
This commit is contained in:
1 parent
ade1b9c2d1
commit
756a0ff572
3 files changed
+49
-1
No files matched your search
@@ -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