forked from boostorg/mp11
Add a test with N=1089 to mp_find.cpp
This commit is contained in:
@@ -59,5 +59,16 @@ int main()
|
|||||||
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_find<L5, X2>, mp_size_t<1>>));
|
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();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user