Remove redundant check; add coment; include config.hpp

This commit is contained in:
Peter Dimov
2017-05-27 03:01:34 +03:00
parent 7f42d987e7
commit b530ffcae5

View File

@@ -17,6 +17,7 @@
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/config.hpp>
#include <exception>
#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