C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Tests functionality from Exercise 5-1. More...
Typedefs | |
typedef boost::mpl::vector_c< int, 1, 2, 3, 4 > | testVec |
typedef double_first_half< testVec >::type | testVec2 |
Functions | |
BOOST_STATIC_ASSERT ((boost::mpl::equal< testVec2, boost::mpl::vector_c< int, 2, 4, 3, 4 > >::value)) | |
Tests functionality from Exercise 5-1.
typedef boost::mpl::vector_c<int, 1, 2, 3, 4> test_5_1::testVec |
Definition at line 43 of file chapter-5.cpp.
typedef double_first_half<testVec>::type test_5_1::testVec2 |
Definition at line 45 of file chapter-5.cpp.
test_5_1::BOOST_STATIC_ASSERT | ( | (boost::mpl::equal< testVec2, boost::mpl::vector_c< int, 2, 4, 3, 4 > >::value) | ) |