From 435b293467067e2a657b031be9d5533612ae9060 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 26 Jan 2025 03:16:23 +0200 Subject: [PATCH] Mark `std::get` illegal overloads as deprecated --- include/boost/array.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/array.hpp b/include/boost/array.hpp index 8486f9b..f0ebd9d 100644 --- a/include/boost/array.hpp +++ b/include/boost/array.hpp @@ -416,12 +416,14 @@ namespace boost { // If we don't have std::array, I'm assuming that we don't have std::get namespace std { template + BOOST_DEPRECATED( "please use `boost::get` instead" ) T &get(boost::array &arr) BOOST_NOEXCEPT { BOOST_STATIC_ASSERT_MSG ( Idx < N, "std::get<>(boost::array &) index out of range" ); return arr[Idx]; } template + BOOST_DEPRECATED( "please use `boost::get` instead" ) const T &get(const boost::array &arr) BOOST_NOEXCEPT { BOOST_STATIC_ASSERT_MSG ( Idx < N, "std::get<>(const boost::array &) index out of range" ); return arr[Idx];