Fix C++98 tests to not use C++11 features.
* testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc: Fix C++98 test to not use C++11 features. * testsuite/25_algorithms/fill_n/2.cc: Likewise. From-SVN: r263815
This commit is contained in:
parent
6de2ce26bc
commit
c07870270a
|
@ -1,5 +1,9 @@
|
||||||
2018-08-23 Jonathan Wakely <jwakely@redhat.com>
|
2018-08-23 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
* testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
|
||||||
|
Fix C++98 test to not use C++11 features.
|
||||||
|
* testsuite/25_algorithms/fill_n/2.cc: Likewise.
|
||||||
|
|
||||||
* scripts/check_compile: Fix comments.
|
* scripts/check_compile: Fix comments.
|
||||||
|
|
||||||
* include/debug/string (insert(__const_iterator, _InIter, _InIter)):
|
* include/debug/string (insert(__const_iterator, _InIter, _InIter)):
|
||||||
|
|
|
@ -31,7 +31,7 @@ test01()
|
||||||
ref.push_back(1);
|
ref.push_back(1);
|
||||||
ref.push_back(2);
|
ref.push_back(2);
|
||||||
|
|
||||||
std::vector<std::vector<int>> vvect;
|
std::vector<std::vector<int> > vvect;
|
||||||
vvect.push_back(std::vector<int>());
|
vvect.push_back(std::vector<int>());
|
||||||
vvect.push_back(std::vector<int>());
|
vvect.push_back(std::vector<int>());
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,8 @@ bad_lower(int lhs, int rhs)
|
||||||
|
|
||||||
void test01()
|
void test01()
|
||||||
{
|
{
|
||||||
int ins[] { 0, 1, 2, 3 };
|
int ins[] = { 0, 1, 2, 3 };
|
||||||
int outs[] { 9, 9 };
|
int outs[] = { 9, 9 };
|
||||||
std::partial_sort_copy(ins, ins + 4, outs, outs + 2, bad_lower);
|
std::partial_sort_copy(ins, ins + 4, outs, outs + 2, bad_lower);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue