Skip to content

Commit

Permalink
Fix to compile with newer Visual C++, such as 16.11, and /Zc:implicit…
Browse files Browse the repository at this point in the history
…Noexcept-.

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
  • Loading branch information
jaykrell committed Jul 12, 2024
1 parent 6be38c3 commit 617e4b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/boost/iostreams/filtering_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ class filtering_stream_base
typename Chain::char_type,
typename Chain::traits_type
>::stream_type stream_type;

BOOST_DEFAULTED_FUNCTION(~filtering_stream_base() BOOST_NOEXCEPT, { })

filtering_stream_base() : stream_type(0) { this->set_chain(&chain_); }
private:
void notify() { this->rdbuf(chain_.empty() ? 0 : &chain_.front()); }
Expand Down

0 comments on commit 617e4b8

Please sign in to comment.