From df8518867177f90629e65e29f868e506084e23cb Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Wed, 20 Oct 2021 18:06:28 -0700 Subject: [PATCH] Fix to compile with newer Visual C++, such as 16.11, and /Zc:implicitNoexcept-. Otherwise gets: Error C2694 'override': overriding virtual function has less restrictive exception specification than base class virtual member function 'base' Similar changes are being made e.g.: https://github.com/boostorg/json/pull/636 And proposed here: https://github.com/boostorg/iostreams/pull/136 I grant there there could be more of this. These two are just enough for our codebase. --- include/boost/format/alt_sstream.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/format/alt_sstream.hpp b/include/boost/format/alt_sstream.hpp index 3a0a07a1..b9a8326d 100644 --- a/include/boost/format/alt_sstream.hpp +++ b/include/boost/format/alt_sstream.hpp @@ -138,6 +138,7 @@ namespace boost { typedef basic_altstringbuf stringbuf_t; public: typedef Alloc allocator_type; + ~basic_oaltstringstream() noexcept override = default; basic_oaltstringstream() : pbase_type(new stringbuf_t), stream_t(pbase_type::member.get()) { }