diff --git a/include/boost/exception/detail/cloning_base.hpp b/include/boost/exception/detail/cloning_base.hpp index 946d41d..1631951 100644 --- a/include/boost/exception/detail/cloning_base.hpp +++ b/include/boost/exception/detail/cloning_base.hpp @@ -23,6 +23,10 @@ boost protected: +#ifdef __GNUC__ +virtual //Disable bogus GCC warning. +//Would someone at GCC finally get the protected, non-virtual destructor approach? +#endif ~cloning_base() throw() { } diff --git a/include/boost/exception/detail/counted_base.hpp b/include/boost/exception/detail/counted_base.hpp index 2dad9ac..0dca267 100644 --- a/include/boost/exception/detail/counted_base.hpp +++ b/include/boost/exception/detail/counted_base.hpp @@ -34,6 +34,10 @@ boost protected: +#ifdef __GNUC__ +virtual //Disable bogus GCC warning. +//Would someone at GCC finally get the protected, non-virtual destructor approach? +#endif ~counted_base() throw() { } diff --git a/include/boost/exception/info.hpp b/include/boost/exception/info.hpp index c263d54..7a9d146 100644 --- a/include/boost/exception/info.hpp +++ b/include/boost/exception/info.hpp @@ -39,6 +39,10 @@ boost protected: +#ifdef __GNUC__ +virtual //Disable bogus GCC warning. +//Would someone at GCC finally get the protected, non-virtual destructor approach? +#endif ~error_info_base() { }