mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
base: forward args in Output::print
The original version copied the arguments, which does not work for the output of complex types, in particular non-copyable objects.
This commit is contained in:
parent
35fa67768f
commit
b8e98f2355
@ -233,7 +233,7 @@ namespace Genode {
|
||||
* Print a variable number of arguments
|
||||
*/
|
||||
template <typename HEAD, typename... TAIL>
|
||||
static inline void print(Output &output, HEAD const &head, TAIL... tail)
|
||||
static inline void print(Output &output, HEAD const &head, TAIL &&... tail)
|
||||
{
|
||||
Output::out_args(output, head, tail...);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user