--- boost/ptr_container/ptr_map.hpp +++ boost/ptr_container/ptr_map.hpp @@ -16,6 +16,12 @@ # pragma once #endif +#include +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include @@ -162,4 +168,8 @@ } +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic pop +#endif + #endif --- boost/ptr_container/ptr_map_adapter.hpp +++ boost/ptr_container/ptr_map_adapter.hpp @@ -16,6 +16,12 @@ # pragma once #endif +#include +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include #include @@ -876,4 +876,8 @@ } // namespace 'boost' +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic pop +#endif + #endif --- boost/ptr_container/ptr_set_adapter.hpp +++ boost/ptr_container/ptr_set_adapter.hpp @@ -16,6 +16,12 @@ # pragma once #endif +#include +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include #include @@ -693,4 +693,8 @@ } // namespace 'boost' +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic pop +#endif + #endif --- boost/ptr_container/ptr_sequence_adapter.hpp +++ boost/ptr_container/ptr_sequence_adapter.hpp @@ -16,6 +16,11 @@ # pragma once #endif +#include +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif #include #include @@ -773,4 +777,8 @@ } // namespace 'boost' +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic pop +#endif + #endif --- boost/ptr_container/ptr_vector.hpp +++ boost/ptr_container/ptr_vector.hpp @@ -16,6 +16,12 @@ # pragma once #endif +#include +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include @@ -74,4 +80,8 @@ } +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic pop +#endif + #endif --- boost/smart_ptr/detail/shared_count.hpp +++ boost/smart_ptr/detail/shared_count.hpp @@ -18,6 +18,12 @@ // http://www.boost.org/LICENSE_1_0.txt) // +#include +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #ifdef __BORLANDC__ # pragma warn -8027 // Functions containing try are not expanded inline #endif @@ -604,4 +604,8 @@ # pragma warn .8027 // Functions containing try are not expanded inline #endif +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic pop +#endif + #endif // #ifndef BOOST_SMART_PTR_DETAIL_SHARED_COUNT_HPP_INCLUDED --- boost/smart_ptr/scoped_ptr.hpp +++ boost/smart_ptr/scoped_ptr.hpp @@ -11,6 +11,12 @@ // http://www.boost.org/libs/smart_ptr/scoped_ptr.htm // +#include +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include #include @@ -158,4 +158,8 @@ } // namespace boost +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic pop +#endif + #endif // #ifndef BOOST_SMART_PTR_SCOPED_PTR_HPP_INCLUDED --- boost/smart_ptr/shared_ptr.hpp +++ boost/smart_ptr/shared_ptr.hpp @@ -14,6 +14,12 @@ // See http://www.boost.org/libs/smart_ptr/shared_ptr.htm for documentation. // +#include +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include // for broken compiler workarounds #if defined(BOOST_NO_MEMBER_TEMPLATES) && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) @@ -1036,4 +1036,9 @@ #endif // #if defined(BOOST_NO_MEMBER_TEMPLATES) && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) +#include +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE +# pragma GCC diagnostic pop +#endif + #endif // #ifndef BOOST_SMART_PTR_SHARED_PTR_HPP_INCLUDED