From d8106992aa976e999180db643bf2693720ed6911 Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Wed, 20 Oct 2021 19:32:53 -0700 Subject: [PATCH] Replace { } with BOOST_DEFAULTED_FUNCTION for C++03 compatibility. --- include/boost/iostreams/filtering_stream.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/iostreams/filtering_stream.hpp b/include/boost/iostreams/filtering_stream.hpp index 0f376605b..79caf5504 100644 --- a/include/boost/iostreams/filtering_stream.hpp +++ b/include/boost/iostreams/filtering_stream.hpp @@ -93,7 +93,9 @@ class filtering_stream_base typename Chain::char_type, typename Chain::traits_type >::stream_type stream_type; - ~filtering_stream_base() BOOST_NOEXCEPT = default; + + 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()); }