undo last commit

[SVN r32521]
This commit is contained in:
Arkadiy Vertleyb
2006-02-03 01:42:21 +00:00
parent d6c44f0332
commit e359321195

View File

@@ -1,33 +1,10 @@
//#undef BOOST_TYPEOF_COMPLIANT
#include <boost/typeof/typeof.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/function_traits.hpp>
namespace boost { namespace type_of {
#ifdef BOOST_TYPEOF_EMULATION
template<class T>
typename enable_if<
is_function<T>,
sizer<typename encode_type<BOOST_TYPEOF_VECTOR(0)<>, T*>::type>
>::type encode(T*);
#else
template<typename T>
char (*encode_start(T*))[encode_type<T*>::value];
#endif
}}
void f()
{}
template<class T>
class x
{
typedef BOOST_TYPEOF(&::f) type;
typedef BOOST_TYPEOF(&f) type;
};