1
0
forked from boostorg/mp11

test/mp_count: test N=1089

This commit is contained in:
Peter Dimov
2020-11-26 01:22:15 +02:00
parent 6bb260ff65
commit 37adad6624

View File

@ -7,6 +7,12 @@
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/mp11/detail/config.hpp>
#if BOOST_MP11_MSVC
# pragma warning( disable: 4503 ) // decorated name length exceeded
#endif
#include <boost/mp11/algorithm.hpp>
#include <boost/mp11/list.hpp>
#include <boost/mp11/integral.hpp>
@ -59,5 +65,16 @@ int main()
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_count<L5, X2>, mp_size_t<1>>));
}
{
using boost::mp11::mp_repeat_c;
int const N = 1089;
using L = mp_repeat_c<mp_list<void>, N>;
using R = mp_count<L, void>;
BOOST_TEST_TRAIT_TRUE((std::is_same<R, mp_size_t<N>>));
}
return boost::report_errors();
}