From 342e4c6d10d586058818daa84201a2d301357a53 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Tue, 3 Oct 2023 00:15:24 +0300 Subject: [PATCH] Mark scope guard dtors as throwing when calling basic_ios::exceptions(). (#15) --- include/boost/io/ios_state.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/io/ios_state.hpp b/include/boost/io/ios_state.hpp index 632a122..e8682b8 100644 --- a/include/boost/io/ios_state.hpp +++ b/include/boost/io/ios_state.hpp @@ -155,7 +155,7 @@ public: s.exceptions(a); } - ~basic_ios_exception_saver() { + ~basic_ios_exception_saver() BOOST_NOEXCEPT_IF(false) { this->restore(); } @@ -413,7 +413,7 @@ public: #endif { } - ~basic_ios_all_saver() { + ~basic_ios_all_saver() BOOST_NOEXCEPT_IF(false) { this->restore(); }