C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Solution to Exercise 3-4. More...
#include "chapter-3-twice.hpp"
#include <boost/static_assert.hpp>
#include <boost/type_traits/add_pointer.hpp>
#include <boost/mpl/equal.hpp>
#include <boost/mpl/placeholders.hpp>
Go to the source code of this file.
Namespaces | |
namespace | exercise_3_4 |
Encapsulate solution for Exercise 3-4. | |
Typedefs | |
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. | |
Functions | |
exercise_3_4::BOOST_STATIC_ASSERT ((boost::mpl::equal< double_twice, int **** >::type::value)) | |
Solution to Exercise 3-4.
Definition in file exercise-3-4.hpp.