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,10 +4,11 @@
#include <boost/array.hpp>
#include <boost/core/lightweight_test.hpp>
#include <cstddef>
template<class T, std::size_t N> void test()
{
boost::array<T, N> a = {};
boost::array<T, N> a = {{}};
T (&e)[ N ] = a.elems;