]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mp11/test/mp_with_index_cx.cpp
2 // Copyright 2017 Peter Dimov.
4 // Distributed under the Boost Software License, Version 1.0.
6 // See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt
9 #include <boost/config.hpp>
11 #if defined( BOOST_NO_CXX14_CONSTEXPR )
17 #include <boost/mp11/algorithm.hpp>
18 #include <boost/core/lightweight_test.hpp>
19 #include <boost/config.hpp>
20 #include <boost/detail/workaround.hpp>
22 using boost::mp11::mp_size_t
;
23 using boost::mp11::mp_with_index
;
27 template<std::size_t I
> constexpr std::size_t operator()( mp_size_t
<I
> ) const
33 #define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__)
37 constexpr std::size_t i
= mp_with_index
<64>( 57, F
{} );
38 STATIC_ASSERT( i
== 57 );