C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Encapsulate solution for Exercise 3-3. More...
Typedefs | |
typedef twice< boost::add_pointer< _1 >, int >::type | double_pointer_int |
Used twice to add two pointers. | |
typedef twice< boost::add_pointer< _1 >, double_pointer_int >::type | four_pointer_int |
Used twice twice to add four pointers. | |
Functions | |
BOOST_STATIC_ASSERT ((boost::mpl::equal< double_pointer_int, int ** >::type::value)) | |
BOOST_STATIC_ASSERT ((boost::mpl::equal< four_pointer_int, int **** >::type::value)) | |
Encapsulate solution for Exercise 3-3.
typedef twice<boost::add_pointer<_1>,int>::type exercise_3_3::double_pointer_int |
Used twice to add two pointers.
Definition at line 39 of file exercise-3-3.hpp.
typedef twice<boost::add_pointer<_1>,double_pointer_int>::type exercise_3_3::four_pointer_int |
Used twice twice to add four pointers.
Definition at line 45 of file exercise-3-3.hpp.
exercise_3_3::BOOST_STATIC_ASSERT | ( | (boost::mpl::equal< double_pointer_int, int ** >::type::value) | ) |
exercise_3_3::BOOST_STATIC_ASSERT | ( | (boost::mpl::equal< four_pointer_int, int **** >::type::value) | ) |