Skip to content

Commit

Permalink
Disable "-Wdeprecated-declarations" for max_size which was deprecated…
Browse files Browse the repository at this point in the history
… in the standard.
  • Loading branch information
igaztanaga committed Dec 23, 2024
1 parent bae5554 commit d12528d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/boost/container/allocator_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d12528d

Please sign in to comment.