mirror of
https://github.com/boostorg/mpl.git
synced 2025-10-03 19:21:00 +02:00
fix erroneous example (reported by Brad Austin)
[SVN r26885]
This commit is contained in:
@@ -89,9 +89,9 @@ Example
|
|||||||
.. parsed-literal::
|
.. parsed-literal::
|
||||||
|
|
||||||
typedef range_c<long,10,50> range;
|
typedef range_c<long,10,50> range;
|
||||||
BOOST_MPL_ASSERT_RELATION( (at_c< range,0 >::value), ==, 10 );
|
BOOST_MPL_ASSERT_RELATION( (at_c< range,0 >::type::value), ==, 10 );
|
||||||
BOOST_MPL_ASSERT_RELATION( (at_c< range,10 >::value), ==, 20 );
|
BOOST_MPL_ASSERT_RELATION( (at_c< range,10 >::type::value), ==, 20 );
|
||||||
BOOST_MPL_ASSERT_RELATION( (at_c< range,40 >::value), ==, 50 );
|
BOOST_MPL_ASSERT_RELATION( (at_c< range,40 >::type::value), ==, 50 );
|
||||||
|
|
||||||
|
|
||||||
See also
|
See also
|
||||||
|
Reference in New Issue
Block a user