io: use rvalue-ref for indented ostream operator

This commit is contained in:
Danny Robson 2014-07-15 19:48:00 +10:00
parent a9af10ec42
commit 8df51f7830

2
io.ipp
View File

@ -22,7 +22,7 @@ namespace util {
template <typename T>
std::ostream&
operator<< (std::ostream &os, const util::indented<T> &v) {
operator<< (std::ostream &os, const util::indented<T> &&v) {
util::indenter raii (os);
os << v.data;
return os;