1
0
forked from boostorg/mp11

Add a test with N=1089 to mp_find.cpp

This commit is contained in:
Peter Dimov
2024-12-21 21:04:34 +02:00
parent 279041fd42
commit 784ff13c6e

View File

@@ -59,5 +59,16 @@ int main()
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_find<L5, X2>, mp_size_t<1>>));
}
{
using boost::mp11::mp_iota_c;
int const N = 1089;
using L = mp_iota_c<N>;
using R = mp_find<L, mp_size_t<N/2>>;
BOOST_TEST_TRAIT_TRUE((std::is_same<R, mp_size_t<N/2>>));
}
return boost::report_errors();
}