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

21 lines
685 B
C++

#include "TestHasStaticMemberFunction.hpp"
#include <boost/mpl/assert.hpp>
int main()
{
// You can always instantiate without compiler errors
tti::TheTIntFunction<AType,void,boost::mpl::vector<long,double> > aVar;
tti::Pickedname<AnotherType,AType,boost::mpl::vector<long,long> > aVar3;
// Compile time asserts
BOOST_MPL_ASSERT((tti::HaveTheSIntFunction<AType,int,boost::mpl::vector<long,double> >));
BOOST_MPL_ASSERT((tti::TheTIntFunction<AnotherType,AType,boost::mpl::vector<long,double> >));
BOOST_MPL_ASSERT((tti::has_static_member_function_TSFunction<AnotherType,AType::AStructType,boost::mpl::vector<AType::AnIntType,double> >));
return 0;
}