diff --git a/include/boost/smart_ptr/bad_weak_ptr.hpp b/include/boost/smart_ptr/bad_weak_ptr.hpp index 47d7783..b086be5 100644 --- a/include/boost/smart_ptr/bad_weak_ptr.hpp +++ b/include/boost/smart_ptr/bad_weak_ptr.hpp @@ -17,6 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // +#include #include #ifdef __BORLANDC__ @@ -37,11 +38,10 @@ namespace boost #endif #if defined(BOOST_CLANG) -#if defined(__clang__) +// Intel C++ on Mac defines __clang__ but doesn't support the pragma # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wweak-vtables" #endif -#endif class bad_weak_ptr: public std::exception { @@ -54,10 +54,8 @@ public: }; #if defined(BOOST_CLANG) -#if defined(__clang__) # pragma clang diagnostic pop #endif -#endif #if defined(__BORLANDC__) && __BORLANDC__ <= 0x564 # pragma option pop