Protect clang pragmas with BOOST_CLANG macro.

This commit is contained in:
K. Noel Belcourt
2017-05-26 12:33:59 -06:00
parent 33b18c7da0
commit 7f42d987e7

View File

@@ -36,10 +36,12 @@ namespace boost
# pragma option push -pc
#endif
#if defined(BOOST_CLANG)
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wweak-vtables"
#endif
#endif
class bad_weak_ptr: public std::exception
{
@@ -51,9 +53,11 @@ public:
}
};
#if defined(BOOST_CLANG)
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
#endif
#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
# pragma option pop