Skip to content
Snippets Groups Projects
Commit 78f02e80 authored by Jonathan Wakely's avatar Jonathan Wakely Committed by Jonathan Wakely
Browse files

libstdc++: Fix testcase for C++98 compatibility

	* testsuite/25_algorithms/equal/deque_iterators/1.cc: Don't use C++11
	initialization syntax.

From-SVN: r280117
parent 7918cb93
No related branches found
No related tags found
No related merge requests found
2020-01-10 Jonathan Wakely <jwakely@redhat.com> 2020-01-10 Jonathan Wakely <jwakely@redhat.com>
* testsuite/25_algorithms/equal/deque_iterators/1.cc: Don't use C++11
initialization syntax.
PR libstdc++/92285 PR libstdc++/92285
* include/bits/streambuf_iterator.h (istreambuf_iterator): Make type * include/bits/streambuf_iterator.h (istreambuf_iterator): Make type
of base class independent of __cplusplus value. of base class independent of __cplusplus value.
......
...@@ -104,7 +104,7 @@ void test05() ...@@ -104,7 +104,7 @@ void test05()
{ {
using namespace std; using namespace std;
int a[] { 0, 1, 2, 3, 4 }; int a[] = { 0, 1, 2, 3, 4 };
deque<int, __gnu_cxx::new_allocator<int> > d1(a, a + 5); deque<int, __gnu_cxx::new_allocator<int> > d1(a, a + 5);
deque<int, __gnu_cxx::malloc_allocator<int> > d2(a, a + 5); deque<int, __gnu_cxx::malloc_allocator<int> > d2(a, a + 5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment