Skip to content

Commit c084518

Browse files
committed
test/mp_find: Decrease N to 257 for MSVC without constexpr
1 parent 784ff13 commit c084518

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

test/mp_find.cpp

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
2-
// Copyright 2015 Peter Dimov.
3-
//
1+
// Copyright 2015, 2024 Peter Dimov
42
// Distributed under the Boost Software License, Version 1.0.
5-
//
6-
// See accompanying file LICENSE_1_0.txt or copy at
7-
// http://www.boost.org/LICENSE_1_0.txt
8-
3+
// https://www.boost.org/LICENSE_1_0.txt
94

105
#include <boost/mp11/algorithm.hpp>
116
#include <boost/mp11/list.hpp>
@@ -62,8 +57,16 @@ int main()
6257
{
6358
using boost::mp11::mp_iota_c;
6459

60+
#if BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, < 1920 )
61+
62+
int const N = 257;
63+
64+
#else
65+
6566
int const N = 1089;
6667

68+
#endif
69+
6770
using L = mp_iota_c<N>;
6871
using R = mp_find<L, mp_size_t<N/2>>;
6972

0 commit comments

Comments
 (0)