forked from boostorg/mpl
Revert "Merge pull request #11 from Lastique/modularization"
This reverts commita9a1eddba8, reversing changes made tod6bc9845ba.
This commit is contained in:
+3
-4
@@ -13,20 +13,19 @@
|
||||
|
||||
#include <boost/mpl/at.hpp>
|
||||
#include <boost/mpl/vector/vector10_c.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
#include "test.hpp"
|
||||
#include <boost/mpl/aux_/test.hpp>
|
||||
|
||||
template< typename Seq, int n > struct at_test
|
||||
{
|
||||
typedef typename at_c<Seq,n>::type t;
|
||||
MPL_ASSERT(( boost::is_same< t, integral_c<int,9-n> > ));
|
||||
MPL_ASSERT(( is_same< t, integral_c<int,9-n> > ));
|
||||
MPL_ASSERT_RELATION( t::value, ==, 9 - n );
|
||||
};
|
||||
|
||||
MPL_TEST_CASE()
|
||||
{
|
||||
typedef vector10_c<int,9,8,7,6,5,4,3,2,1,0> numbers;
|
||||
|
||||
|
||||
at_test< numbers, 0 >();
|
||||
at_test< numbers, 1 >();
|
||||
at_test< numbers, 2 >();
|
||||
|
||||
Reference in New Issue
Block a user