io: use rvalue-ref for indented ostream operator
This commit is contained in:
parent
a9af10ec42
commit
8df51f7830
2
io.ipp
2
io.ipp
@ -22,7 +22,7 @@ namespace util {
|
|||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
std::ostream&
|
std::ostream&
|
||||||
operator<< (std::ostream &os, const util::indented<T> &v) {
|
operator<< (std::ostream &os, const util::indented<T> &&v) {
|
||||||
util::indenter raii (os);
|
util::indenter raii (os);
|
||||||
os << v.data;
|
os << v.data;
|
||||||
return os;
|
return os;
|
||||||
|
Loading…
Reference in New Issue
Block a user