Skip to content

Commit

Permalink
Work around MSVC failures
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Dec 18, 2023
1 parent 9e1a5d0 commit f8fb53c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/mp_transform_q_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,29 @@ struct Test

int main()
{
#if BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, < 1920 )

using boost::mp11::mp_size_t;

Test()( mp_size_t<1>() );
Test()( mp_size_t<2>() );
Test()( mp_size_t<3>() );
Test()( mp_size_t<4>() );
Test()( mp_size_t<5>() );
Test()( mp_size_t<6>() );
Test()( mp_size_t<7>() );
Test()( mp_size_t<9>() );
Test()( mp_size_t<10>() );
Test()( mp_size_t<11>() );

#else

using boost::mp11::mp_for_each;
using boost::mp11::mp_iota_c;

mp_for_each< mp_iota_c<32> >( Test() );

#endif

return boost::report_errors();
}

0 comments on commit f8fb53c

Please sign in to comment.