binding workarounds added

[SVN r33045]
This commit is contained in:
Arkadiy Vertleyb
2006-02-20 21:54:00 +00:00
parent ade1b9c2d1
commit 756a0ff572
3 changed files with 49 additions and 1 deletions

View File

@ -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
));
};