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

@ -149,9 +149,8 @@ class Vfs::Vfs_handle
*
* XXX: may not be necesarry if the method above is virtual.
*/
template <typename FUNC>
void apply_handler(FUNC const &func) const {
if (_handler_ptr) func(*_handler_ptr); }
void apply_handler(auto const &fn) const {
if (_handler_ptr) fn(*_handler_ptr); }
/**
* Notify application through response handler