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

@ -55,8 +55,7 @@ class Platform::Connection : public Genode::Connection<Session>,
void _handle_io() {}
template <typename FN>
Capability<Device_interface> _wait_for_device(FN const & fn)
Capability<Device_interface> _wait_for_device(auto const &fn)
{
for (;;) {
/* repeatedly check for availability of device */
@ -117,8 +116,7 @@ class Platform::Connection : public Genode::Connection<Session>,
return Client::alloc_dma_buffer(size, cache); });
}
template <typename FN>
void with_xml(FN const & fn)
void with_xml(auto const &fn)
{
try {
if (_ds.constructed() && _ds->local_addr<void const>()) {