diff --git a/test/mp_find_if_q.cpp b/test/mp_find_if_q.cpp index 73aaf4ae..232829f3 100644 --- a/test/mp_find_if_q.cpp +++ b/test/mp_find_if_q.cpp @@ -1,16 +1,12 @@ - -// Copyright 2015, 2017 Peter Dimov. -// +// Copyright 2015, 2017, 2024 Peter Dimov // Distributed under the Boost Software License, Version 1.0. -// -// See accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt - +// https://www.boost.org/LICENSE_1_0.txt #include #include #include #include +#include #include #include #include @@ -57,5 +53,26 @@ int main() BOOST_TEST_TRAIT_TRUE((std::is_same>, mp_size_t<1>>)); } + { + using boost::mp11::mp_iota_c; + using boost::mp11::mp_bind_front; + using boost::mp11::mp_less; + +#if BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, < 1920 ) + + int const N = 257; + +#else + + int const N = 1089; + +#endif + + using L = mp_iota_c; + using R = mp_find_if_q< L, mp_bind_front> >; + + BOOST_TEST_TRAIT_TRUE((std::is_same>)); + } + return boost::report_errors(); }