MPL names/directory structure refactoring
[SVN r17651]
This commit is contained in:
1 parent
f21cd2bd51
commit
e98c65986e
137 files changed
+2773
-868
No files matched your search
@@ -17,8 +17,8 @@
|
||||
#include "boost/mpl/lower_bound.hpp"
|
||||
#include "boost/mpl/distance.hpp"
|
||||
#include "boost/mpl/list_c.hpp"
|
||||
#include "boost/mpl/comparison/less.hpp"
|
||||
#include "boost/mpl/int_c.hpp"
|
||||
#include "boost/mpl/less.hpp"
|
||||
#include "boost/mpl/int.hpp"
|
||||
#include "boost/static_assert.hpp"
|
||||
|
||||
namespace mpl = boost::mpl;
|
||||
@@ -26,7 +26,7 @@ namespace mpl = boost::mpl;
|
||||
int main()
|
||||
{
|
||||
typedef mpl::list_c<int,1,2,3,3,3,5,8> numbers;
|
||||
typedef mpl::lower_bound< numbers, mpl::int_c<3> >::type iter;
|
||||
typedef mpl::lower_bound< numbers, mpl::int_<3> >::type iter;
|
||||
BOOST_STATIC_ASSERT((mpl::distance< mpl::begin<numbers>::type,iter >::type::value == 2));
|
||||
BOOST_STATIC_ASSERT(iter::type::value == 3);
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user