summaryrefslogtreecommitdiff
path: root/boost/ptr_container/ptr_map.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/ptr_container/ptr_map.hpp')
-rw-r--r--boost/ptr_container/ptr_map.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/boost/ptr_container/ptr_map.hpp b/boost/ptr_container/ptr_map.hpp
index edacf0eb62..6e43c47625 100644
--- a/boost/ptr_container/ptr_map.hpp
+++ b/boost/ptr_container/ptr_map.hpp
@@ -18,6 +18,12 @@
#include <map>
#include <boost/ptr_container/ptr_map_adapter.hpp>
+#include <boost/ptr_container/detail/ptr_container_disable_deprecated.hpp>
+
+#if defined(BOOST_PTR_CONTAINER_DISABLE_DEPRECATED)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
namespace boost
{
@@ -164,4 +170,8 @@ namespace boost
}
+#if defined(BOOST_PTR_CONTAINER_DISABLE_DEPRECATED)
+#pragma GCC diagnostic pop
+#endif
+
#endif