diff --git a/include/boost/format/alt_sstream.hpp b/include/boost/format/alt_sstream.hpp index b9a8326d..027d7503 100644 --- a/include/boost/format/alt_sstream.hpp +++ b/include/boost/format/alt_sstream.hpp @@ -138,7 +138,9 @@ namespace boost { typedef basic_altstringbuf stringbuf_t; public: typedef Alloc allocator_type; - ~basic_oaltstringstream() noexcept override = default; + + BOOST_DEFAULTED_FUNCTION(~basic_oaltstringstream() BOOST_NOEXCEPT, { }) + basic_oaltstringstream() : pbase_type(new stringbuf_t), stream_t(pbase_type::member.get()) { }