Fix msvc-14.0, gcc-4.x failures

This commit is contained in:
Peter Dimov
2025-01-10 03:37:10 +02:00
parent 049e98dd57
commit 7fac30e1ab
2 changed files with 13 additions and 1 deletions

View File

@ -4,6 +4,8 @@
#include <boost/array.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
#include <boost/config/workaround.hpp>
#include <cstddef>
template<class T, std::size_t N> void test1()
@ -57,9 +59,18 @@ int main()
test2<int, 7>();
// test2<int const, 0>();
#if BOOST_WORKAROUND(BOOST_MSVC, < 1910) || BOOST_WORKAROUND(BOOST_GCC, < 50000)
// = {} doesn't work for const T
#else
test2<int const, 1>();
test2<int const, 7>();
#endif
test3<int>();
test3<int const>();