diff --git a/include/boost/leaf/error.hpp b/include/boost/leaf/error.hpp index 339d3c2..a487cdf 100644 --- a/include/boost/leaf/error.hpp +++ b/include/boost/leaf/error.hpp @@ -388,7 +388,7 @@ namespace boost { namespace leaf { void reset() noexcept { - s_ = std::stringstream(); + s_.str(std::string()); already_.clear(); }