os/include: use C++20 function template syntax

Issue #5227
This commit is contained in:
Norman Feske
2024-05-22 17:22:53 +02:00
committed by Christian Helmuth
parent 5e862b2cd3
commit cfd013a01a
32 changed files with 183 additions and 293 deletions

View File

@ -170,9 +170,9 @@ class Vfs::Dir_file_system : public File_system
* \param fn functor that takes a file-system reference and
* the path as arguments
*/
template <typename RES, typename FN>
template <typename RES>
RES _dir_op(RES const no_entry, RES const no_perm, RES const ok,
char const *path, FN const &fn)
char const *path, auto const &fn)
{
path = _sub_path(path);