Opportunistically take advantage of C++20 move-out-of stringstream
This commit is contained in:
parent
8190e061bc
commit
370d236b66
@ -1246,7 +1246,7 @@ String writeString(StreamWriter::Factory const& factory, Value const& root) {
|
||||
OStringStream sout;
|
||||
StreamWriterPtr const writer(factory.newStreamWriter());
|
||||
writer->write(root, &sout);
|
||||
return sout.str();
|
||||
return std::move(sout).str();
|
||||
}
|
||||
|
||||
OStream& operator<<(OStream& sout, Value const& root) {
|
||||
|
Loading…
Reference in New Issue
Block a user