C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
exercise_2_0::no_boost Namespace Reference

Contains a set of solutions implemented without the aid of the Boost MPL. More...

Classes

struct  add_const_ref
 This is a home-grown implementation to the problem. More...
 
struct  add_const_ref< T & >
 Partial specialization for when T is already a reference. More...
 
struct  add_const_ref< T const >
 (Paranoia) Strip off const on T const to avoid T const const&. Not required. More...
 
struct  add_const_ref_impl
 The default implementation adds a const& to the template type. More...
 
struct  add_const_ref_impl< T, true >
 Simply return the original type if we're already a reference type. More...
 

Detailed Description

Contains a set of solutions implemented without the aid of the Boost MPL.

Occasionally it is more interesting / efficient to tackle problems on your own. There will likely be a corresponding set implemented without.

See also
with_boost