mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-04 00:20:55 +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
|
* Print a variable number of arguments
|
||||||
*/
|
*/
|
||||||
template <typename HEAD, typename... TAIL>
|
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...);
|
Output::out_args(output, head, tail...);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user