fix bogus Fibonacci series (thanks to Caleb Epstein)

[SVN r27532]
This commit is contained in:
Aleksey Gurtovoy
2005-03-02 05:14:26 +00:00
parent 3b3506d454
commit 96345a589c

View File

@@ -68,11 +68,11 @@ Example
.. parsed-literal:: .. parsed-literal::
typedef vector_c<int,1,2,3,5,7,12,19,31> fibonacci; typedef vector_c<int,1,1,2,3,5,8,13,21,34> fibonacci;
typedef push_back<fibonacci,int_<50> >::type fibonacci2; typedef push_back<fibonacci,int_<55> >::type fibonacci2;
BOOST_MPL_ASSERT_RELATION( front<fibonacci2>::type::value, ==, 1 ); BOOST_MPL_ASSERT_RELATION( front<fibonacci2>::type::value, ==, 1 );
BOOST_MPL_ASSERT_RELATION( back<fibonacci2>::type::value, ==, 50 ); BOOST_MPL_ASSERT_RELATION( back<fibonacci2>::type::value, ==, 55 );
See also See also