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

Tests functionality from Exercise 5-8. More...

Typedefs

typedef boost::mpl::advance_c< boost::mpl::begin< exercise_5_8::fibonacci_series >::type, 6 >::type i
 
typedef boost::mpl::advance_c< i, 4 >::type j
 

Functions

 BOOST_STATIC_ASSERT (boost::mpl::deref< i >::type::value==8)
 
 BOOST_STATIC_ASSERT (boost::mpl::deref< j >::type::value==55)
 

Detailed Description

Tests functionality from Exercise 5-8.

Typedef Documentation

◆ i

typedef boost::mpl::advance_c<boost::mpl::begin<exercise_5_8::fibonacci_series>::type,6>::type test_5_8::i

Definition at line 60 of file chapter-5.cpp.

◆ j

typedef boost::mpl::advance_c<i,4>::type test_5_8::j

Definition at line 63 of file chapter-5.cpp.

Function Documentation

◆ BOOST_STATIC_ASSERT() [1/2]

test_5_8::BOOST_STATIC_ASSERT ( boost::mpl::deref< i >::type::value  = =8)

◆ BOOST_STATIC_ASSERT() [2/2]

test_5_8::BOOST_STATIC_ASSERT ( boost::mpl::deref< j >::type::value  = =55)