Disable deprecation warnings for pointer rebind operations

This commit is contained in:
Ion Gaztañaga
2024-11-28 13:18:03 +01:00
parent f3a0bef449
commit 4ae3989329

View File

@@ -26,6 +26,11 @@
namespace boost { namespace boost {
namespace intrusive { namespace intrusive {
#if defined(BOOST_CLANG) || (defined(BOOST_GCC) && (BOOST_GCC >= 40600))
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
/////////////////////////// ///////////////////////////
//struct pointer_rebind_mode //struct pointer_rebind_mode
/////////////////////////// ///////////////////////////
@@ -182,6 +187,10 @@ template <typename T, typename U>
struct pointer_rebind<T*, U> struct pointer_rebind<T*, U>
{ typedef U* type; }; { typedef U* type; };
#if defined(BOOST_CLANG) || (defined(BOOST_GCC) && (BOOST_GCC >= 40600))
# pragma GCC diagnostic pop
#endif
} //namespace container { } //namespace container {
} //namespace boost { } //namespace boost {