os: forward args for Lazy_volatile_object
This patch makes the handling of constructor arguments consistent among the Volatile_object and Lazy_volatile_object classes. Arguments are always forwarded. Otherwise, passing a reference as argument would result in an unwanted copy of the passed object.
This commit is contained in:
@@ -146,7 +146,7 @@ template <typename MT>
|
||||
struct Genode::Lazy_volatile_object : Volatile_object<MT>
|
||||
{
|
||||
template <typename... ARGS>
|
||||
Lazy_volatile_object(ARGS... args)
|
||||
Lazy_volatile_object(ARGS &&... args)
|
||||
:
|
||||
Volatile_object<MT>((typename Volatile_object<MT>::Lazy *)0)
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user