Skip to content

Commit 617e4b8

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
1 parent 6be38c3 commit 617e4b8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/boost/iostreams/filtering_stream.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ class filtering_stream_base
9393
typename Chain::char_type,
9494
typename Chain::traits_type
9595
>::stream_type stream_type;
96+
97+
BOOST_DEFAULTED_FUNCTION(~filtering_stream_base() BOOST_NOEXCEPT, { })
98+
9699
filtering_stream_base() : stream_type(0) { this->set_chain(&chain_); }
97100
private:
98101
void notify() { this->rdbuf(chain_.empty() ? 0 : &chain_.front()); }

0 commit comments

Comments
 (0)