]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove non-deducible parameter for std::advance overload
authorJonathan Wakely <jwakely@redhat.com>
Thu, 16 Sep 2021 12:35:24 +0000 (13:35 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 12 Oct 2021 10:45:44 +0000 (11:45 +0100)
This was just a copy and paste error.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* include/bits/fs_path.h (advance): Remove non-deducible
template parameter.

(cherry picked from commit 21c760510d31253074577a14021fdc6ad44084b6)

libstdc++-v3/include/bits/fs_path.h

index 4fcd1def92f273fff01dd9988a32705452f8dacd..85c8341261539e078b05247473836fddac19c413 100644 (file)
@@ -1357,7 +1357,7 @@ inline ptrdiff_t
 distance(filesystem::path::iterator __first, filesystem::path::iterator __last)
 { return __path_iter_distance(__first, __last); }
 
-template<typename _InputIterator, typename _Distance>
+template<typename _Distance>
   void
   advance(filesystem::path::iterator& __i, _Distance __n)
   { __path_iter_advance(__i, static_cast<ptrdiff_t>(__n)); }