C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Compile-time binary to decimal number translation. More...
#include <exercise-3-0.hpp>
Public Member Functions | |
BOOST_STATIC_ASSERT (((N % 10)< 2)) | |
Static Public Attributes | |
static unsigned const | value |
Compile-time binary to decimal number translation.
N | A binary number to examine. Obvisouly, this should contain only 0 and 1. |
Definition at line 37 of file exercise-3-0.hpp.
exercise_3_0::checked_binary< N >::BOOST_STATIC_ASSERT | ( | ((N % 10)< 2) | ) |
|
static |
Definition at line 41 of file exercise-3-0.hpp.