forked from boostorg/typeof
new test -- handling function ptr from a template context
[SVN r31973]
This commit is contained in:
@ -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
10
test/function_ptr_from_tpl.cpp
Executable file
@ -0,0 +1,10 @@
|
||||
#include <boost\typeof\typeof.hpp>
|
||||
|
||||
void f()
|
||||
{}
|
||||
|
||||
template<class T>
|
||||
class x
|
||||
{
|
||||
typedef BOOST_TYPEOF(&::f) type;
|
||||
};
|
Reference in New Issue
Block a user