2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-27 07:22:12 +00:00
Files
tti/test/TestMFHasStaticDataCompile.cpp
Edward Diener b21c8012ff Added tests
[SVN r67368]
2010-12-20 17:13:19 +00:00

29 lines
626 B
C++

#include "TestMFHasStaticData.hpp"
#include <boost/mpl/assert.hpp>
int main()
{
// You can always instantiate without compiler errors
tti::mf_has_static_data
<
tti::has_static_member_SomeStaticData,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>
> aVar;
// Compile time asserts
BOOST_MPL_ASSERT((tti::mf_has_static_data
<
tti::has_static_member_DSMember,
boost::mpl::identity<AType>,
boost::mpl::identity<short>
>
));
return 0;
}