forked from boostorg/smart_ptr
Remove redundant check; add coment; include config.hpp
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
@@ -37,11 +38,10 @@ namespace boost
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(BOOST_CLANG)
|
#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 push
|
||||||
# pragma clang diagnostic ignored "-Wweak-vtables"
|
# pragma clang diagnostic ignored "-Wweak-vtables"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
class bad_weak_ptr: public std::exception
|
class bad_weak_ptr: public std::exception
|
||||||
{
|
{
|
||||||
@@ -54,10 +54,8 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#if defined(BOOST_CLANG)
|
#if defined(BOOST_CLANG)
|
||||||
#if defined(__clang__)
|
|
||||||
# pragma clang diagnostic pop
|
# pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
|
#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
|
||||||
# pragma option pop
|
# pragma option pop
|
||||||
|
Reference in New Issue
Block a user