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

@ -42,8 +42,7 @@ class Usb::Connection : public Genode::Connection<Session>, public Usb::Client
void _handle_io() { }
template <typename FN>
Device_capability _wait_for_device(FN const & fn)
Device_capability _wait_for_device(auto const & fn)
{
for (;;) {
/* repeatedly check for availability of device */
@ -84,8 +83,7 @@ class Usb::Connection : public Genode::Connection<Session>, public Usb::Client
void sigh(Signal_context_capability sigh) { _rom.sigh(sigh); }
template <typename FN>
void with_xml(FN const & fn)
void with_xml(auto const & fn)
{
update();
try {