new test -- handling function ptr from a template context

[SVN r31973]
This commit is contained in:
Arkadiy Vertleyb
2005-12-10 15:45:33 +00:00
parent e2f0e47fe3
commit 35b47d5b16
2 changed files with 13 additions and 0 deletions

View File

@ -57,4 +57,7 @@ test-suite "typeof"
[ run odr1.cpp odr2.cpp : : : <define>BOOST_TYPEOF_NATIVE : odr_native ]
[ run odr1.cpp odr2.cpp : : : <define>BOOST_TYPEOF_COMPLIANT : odr_emulation ]
[ compile function_ptr_from_tpl.cpp : <define>BOOST_TYPEOF_NATIVE : function_ptr_from_tpl_native ]
[ compile function_ptr_from_tpl.cpp : <define>BOOST_TYPEOF_COMPLIANT : function_ptr_from_tpl_emulation ]
;

10
test/function_ptr_from_tpl.cpp Executable file
View File

@ -0,0 +1,10 @@
#include <boost\typeof\typeof.hpp>
void f()
{}
template<class T>
class x
{
typedef BOOST_TYPEOF(&::f) type;
};