Fix C++14-only code in testsuite utility

* testsuite/util/testsuite_fs.h (compare_paths): Use three-argument
	form of std::equals for C++11 compatibility.

From-SVN: r271716
This commit is contained in:
Jonathan Wakely 2019-05-28 20:39:41 +01:00 committed by Jonathan Wakely
parent e54b1a92ac
commit d9b401df8f
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2019-05-28 Jonathan Wakely <jwakely@redhat.com>
* testsuite/util/testsuite_fs.h (compare_paths): Use three-argument
form of std::equals for C++11 compatibility.
2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
* doc/xml/manual/appendix_contributing.xml: Update pointer to

View file

@ -67,9 +67,9 @@ namespace __gnu_test
throw test_fs::filesystem_error(
"distance(begin1, end1) != distance(begin2, end2)", p1, p2,
std::make_error_code(std::errc::invalid_argument) );
if (!std::equal(p1.begin(), p1.end(), p2.begin(), p2.end()))
if (!std::equal(p1.begin(), p1.end(), p2.begin()))
throw test_fs::filesystem_error(
"!equal(begin1, end1, begin2, end2)", p1, p2,
"!equal(begin1, end1, begin2)", p1, p2,
std::make_error_code(std::errc::invalid_argument) );
}