C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Solution to Exercise 3-3. 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_3 |
Encapsulate solution for Exercise 3-3. | |
Typedefs | |
typedef twice< boost::add_pointer< _1 >, int >::type | exercise_3_3::double_pointer_int |
Used twice to add two pointers. | |
typedef twice< boost::add_pointer< _1 >, double_pointer_int >::type | exercise_3_3::four_pointer_int |
Used twice twice to add four pointers. | |
Functions | |
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)) | |
Solution to Exercise 3-3.
Definition in file exercise-3-3.hpp.