Disable "-Wdeprecated-declarations" for max_size which was deprecated in the standard.

This commit is contained in:
Ion Gaztañaga
2024-12-23 21:53:47 +01:00
parent bae5554f54
commit d12528d972

View File

@ -192,9 +192,19 @@ class small_vector_allocator;
namespace allocator_traits_detail {
#if defined(BOOST_CONTAINER_GCC_COMPATIBLE_HAS_DIAGNOSTIC_IGNORED)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
BOOST_INTRUSIVE_HAS_STATIC_MEMBER_FUNC_SIGNATURE(has_max_size, max_size)
BOOST_INTRUSIVE_HAS_STATIC_MEMBER_FUNC_SIGNATURE(has_select_on_container_copy_construction, select_on_container_copy_construction)
#if defined(BOOST_CONTAINER_GCC_COMPATIBLE_HAS_DIAGNOSTIC_IGNORED)
#pragma GCC diagnostic pop
#endif
} //namespace allocator_traits_detail {
namespace dtl {