2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-25 18:52:17 +00:00
Files
tti/test/TestHasMemberFunction.cpp
Edward Diener 344360c629 Changes to functionality for version 1.1
[SVN r68610]
2011-02-02 01:44:12 +00:00

18 lines
811 B
C++

#include "TestHasMemberFunction.hpp"
#include <boost/detail/lightweight_test.hpp>
int main()
{
BOOST_TEST((tti::has_member_function_VoidFunction<AType,void>::value));
BOOST_TEST((tti::FunctionReturningInt<AType,int>::value));
BOOST_TEST((tti::FunctionReturningInt<AnotherType,double,boost::mpl::vector<int> >::value));
BOOST_TEST((tti::has_member_function_aFunction<AnotherType,AType,boost::mpl::vector<int> >::value));
BOOST_TEST((tti::AnotherIntFunction<AnotherType,int,boost::mpl::vector<AType> >::value));
BOOST_TEST((tti::has_member_function_sFunction<AnotherType,AType::AnIntType,boost::mpl::vector<int,long,double> >::value));
BOOST_TEST((!tti::has_member_function_someFunctionMember<AnotherType,AType,boost::mpl::vector<long,int> >::value));
return boost::report_errors();
}