libstdc++: Enable __gnu_test::test_container constructor for C++98

The only reason this constructor wasn't defined for C++98 is that it
uses constructor delegation, but that isn't necessary.

libstdc++-v3/ChangeLog:

	* testsuite/util/testsuite_iterators.h (test_container): Define
	array constructor for C++98 as well.
This commit is contained in:
Jonathan Wakely 2025-04-14 17:16:46 +01:00 committed by Jonathan Wakely
parent 69ffddd8bd
commit 8a208899e9
No known key found for this signature in database

View file

@ -610,12 +610,10 @@ namespace __gnu_test
test_container(T* _first, T* _last) : bounds(_first, _last)
{ }
#if __cplusplus >= 201103L
template<std::size_t N>
explicit
test_container(T (&arr)[N]) : test_container(arr, arr+N)
test_container(T (&arr)[N]) : bounds(arr, arr+N)
{ }
#endif
ItType<T>
it(int pos)