2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-25 18:52:17 +00:00
Files
tti/test/test_has_static_member.cpp
Edward Diener d3594aa3f2 Change to boost::tti and BOOST_TTI
[SVN r68796]
2011-02-12 02:26:27 +00:00

18 lines
746 B
C++

#include "test_has_static_member.hpp"
#include <boost/detail/lightweight_test.hpp>
int main()
{
BOOST_TEST((boost::tti::has_static_member_DSMember<AType,short>::value));
BOOST_TEST((boost::tti::HaveTheSIntFunction<AType,int (long,double)>::value));
BOOST_TEST((!boost::tti::TheTIntFunction<AType,AType (long,double)>::value));
BOOST_TEST((boost::tti::TheTIntFunction<AnotherType,AType (long,double)>::value));
BOOST_TEST((boost::tti::has_static_member_TSFunction<AnotherType,AType::AStructType (AType::AnIntType,double)>::value));
BOOST_TEST((!boost::tti::has_static_member_SomeStaticData<AnotherType,float>::value));
BOOST_TEST((!boost::tti::Pickedname<AnotherType,void ()>::value));
return boost::report_errors();
}