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:
parent
69ffddd8bd
commit
8a208899e9
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue