mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 14:34:44 +02:00
Disable deprecation warnings for pointer rebind operations
This commit is contained in:
@@ -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 {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user