Skip to content

Commit df85188

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 4019d83 commit df85188

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/boost/format/alt_sstream.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ namespace boost {
138138
typedef basic_altstringbuf<Ch, Tr, Alloc> stringbuf_t;
139139
public:
140140
typedef Alloc allocator_type;
141+
~basic_oaltstringstream() noexcept override = default;
141142
basic_oaltstringstream()
142143
: pbase_type(new stringbuf_t), stream_t(pbase_type::member.get())
143144
{ }

0 commit comments

Comments
 (0)