From fd3543ade300b66ca2c52be99f9e463a656bb514 Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Wed, 20 Oct 2021 19:36:28 -0700 Subject: [PATCH] BOOST_DEFAULTED_FUNCTION, BOOST_NOEXCEPT to support older compilers, based on PR feedback from my other PR (https://github.com/boostorg/iostreams/pull/136) --- include/boost/format/alt_sstream.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()) { }