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:
Norman Feske 2014-06-13 11:34:01 +02:00
parent 8768a6dae2
commit 65e73074d9

View File

@ -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)
{ }