Skip to content

Commit a3368d3

Browse files
committed
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.: boostorg/json#636 And proposed here: boostorg/iostreams#136 I grant there there could be more of this. These two are just enough for our codebase.
1 parent 9c6964a commit a3368d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/boost/format/alt_sstream.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ namespace boost {
138138
typedef basic_altstringbuf<Ch, Tr, Alloc> stringbuf_t;
139139
public:
140140
typedef Alloc allocator_type;
141+
142+
BOOST_DEFAULTED_FUNCTION(~basic_oaltstringstream() BOOST_NOEXCEPT, { })
143+
141144
basic_oaltstringstream()
142145
: pbase_type(new stringbuf_t), stream_t(pbase_type::member.get())
143146
{ }

0 commit comments

Comments
 (0)