From: Jonathan Wakely Date: Thu, 16 Sep 2021 12:35:24 +0000 (+0100) Subject: libstdc++: Remove non-deducible parameter for std::advance overload X-Git-Tag: releases/gcc-11.3.0~785 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae9e270347ec932310ab16d7521e582e05fecaa2;p=thirdparty%2Fgcc.git libstdc++: Remove non-deducible parameter for std::advance overload This was just a copy and paste error. Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * include/bits/fs_path.h (advance): Remove non-deducible template parameter. (cherry picked from commit 21c760510d31253074577a14021fdc6ad44084b6) --- diff --git a/libstdc++-v3/include/bits/fs_path.h b/libstdc++-v3/include/bits/fs_path.h index 4fcd1def92f2..85c834126153 100644 --- a/libstdc++-v3/include/bits/fs_path.h +++ b/libstdc++-v3/include/bits/fs_path.h @@ -1357,7 +1357,7 @@ inline ptrdiff_t distance(filesystem::path::iterator __first, filesystem::path::iterator __last) { return __path_iter_distance(__first, __last); } -template +template void advance(filesystem::path::iterator& __i, _Distance __n) { __path_iter_advance(__i, static_cast(__n)); }