diff options
Diffstat (limited to 'boost/smart_ptr/bad_weak_ptr.hpp')
-rw-r--r-- | boost/smart_ptr/bad_weak_ptr.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/boost/smart_ptr/bad_weak_ptr.hpp b/boost/smart_ptr/bad_weak_ptr.hpp index 3e0a1b7286..582fad8b71 100644 --- a/boost/smart_ptr/bad_weak_ptr.hpp +++ b/boost/smart_ptr/bad_weak_ptr.hpp @@ -36,6 +36,11 @@ namespace boost # pragma option push -pc #endif +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wweak-vtables" +#endif + class bad_weak_ptr: public std::exception { public: @@ -46,6 +51,10 @@ public: } }; +#if defined(__clang__) +# pragma clang diagnostic pop +#endif + #if defined(__BORLANDC__) && __BORLANDC__ <= 0x564 # pragma option pop #endif |