Fix C++14-only code in testsuite utility
authorJonathan Wakely <jwakely@redhat.com>
Tue, 28 May 2019 19:39:41 +0000 (20:39 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 28 May 2019 19:39:41 +0000 (20:39 +0100)
* testsuite/util/testsuite_fs.h (compare_paths): Use three-argument
form of std::equals for C++11 compatibility.

From-SVN: r271716

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/util/testsuite_fs.h

index 2f1254b..60a504b 100644 (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
index b2a5ee6..fe42845 100644 (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) );
 
   }