// Copyright 2025 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include #include template void test2() { boost::array a1 = {}; boost::array a2; a2 = a1; BOOST_TEST_ALL_EQ( a1.begin(), a1.end(), a2.begin(), a2.end() ); } template void test4() { boost::array a1 = { 1, 2, 3, 4 }; boost::array a2; a2 = a1; BOOST_TEST_ALL_EQ( a1.begin(), a1.end(), a2.begin(), a2.end() ); } int main() { test2(); test2(); test2(); test4(); return boost::report_errors(); }