Allow explicitly setting ReusableStringStream's serialized data

This commit is contained in:
Martin Hořeňovský committed 2020-08-03 22:59:09 +02:00
1 parent a4ac07d104
commit 9d591f19ff
2 files changed
+9 -2

No files matched your search

+5 -1
View File
@@ -173,10 +173,14 @@ namespace Detail {
Singleton<StringStreams>::getMutable().release( m_index );
}
auto ReusableStringStream::str() const -> std::string {
std::string ReusableStringStream::str() const {
return static_cast<std::ostringstream*>( m_oss )->str();
}
void ReusableStringStream::str( std::string const& str ) {
static_cast<std::ostringstream*>( m_oss )->str( str );
}
///////////////////////////////////////////////////////////////////////////