base-*: use C++20 function template syntax

Issue #5227
This commit is contained in:
Norman Feske
2024-06-28 16:05:26 +02:00
parent b5c9107465
commit a2b0553c51
51 changed files with 170 additions and 253 deletions

View File

@ -51,12 +51,10 @@ class Core::Synced_range_allocator : public Range_allocator
using Guard = typename Synced_interface<ALLOC, Mutex>::Guard;
template <typename... ARGS>
Synced_range_allocator(Mutex &mutex, ARGS &&... args)
Synced_range_allocator(Mutex &mutex, auto &&... args)
: _mutex(mutex), _alloc(args...), _synced_object(_mutex, &_alloc) { }
template <typename... ARGS>
Synced_range_allocator(ARGS &&... args)
Synced_range_allocator(auto &&... args)
: _alloc(args...), _synced_object(_mutex, &_alloc) { }
Guard operator () () { return _synced_object(); }