diff --git a/include/boost/iostreams/filtering_stream.hpp b/include/boost/iostreams/filtering_stream.hpp index 8621ef96b..79caf5504 100644 --- a/include/boost/iostreams/filtering_stream.hpp +++ b/include/boost/iostreams/filtering_stream.hpp @@ -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()); }