We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std::get
1 parent 6447b40 commit 435b293Copy full SHA for 435b293
1 file changed
include/boost/array.hpp
@@ -416,12 +416,14 @@ namespace boost {
416
// If we don't have std::array, I'm assuming that we don't have std::get
417
namespace std {
418
template <size_t Idx, typename T, size_t N>
419
+ BOOST_DEPRECATED( "please use `boost::get` instead" )
420
T &get(boost::array<T,N> &arr) BOOST_NOEXCEPT {
421
BOOST_STATIC_ASSERT_MSG ( Idx < N, "std::get<>(boost::array &) index out of range" );
422
return arr[Idx];
423
}
424
425
426
427
const T &get(const boost::array<T,N> &arr) BOOST_NOEXCEPT {
428
BOOST_STATIC_ASSERT_MSG ( Idx < N, "std::get<>(const boost::array &) index out of range" );
429
0 commit comments