|
C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Encapsulate solution for Exercise 3-4. More...
Typedefs | |
| typedef twice< boost::add_pointer< _1 >, twice< boost::add_pointer< _1 >, int >::type >::type | double_twice |
| Call twice on itself to add four pointers to a type. | |
Functions | |
| BOOST_STATIC_ASSERT ((boost::mpl::equal< double_twice, int **** >::type::value)) | |
Encapsulate solution for Exercise 3-4.
| typedef twice<boost::add_pointer<_1>,twice<boost::add_pointer<_1>,int>::type>::type exercise_3_4::double_twice |
Call twice on itself to add four pointers to a type.
Definition at line 42 of file exercise-3-4.hpp.
| exercise_3_4::BOOST_STATIC_ASSERT | ( | (boost::mpl::equal< double_twice, int **** >::type::value) | ) |