Skip to content

Commit 17b49d8

Browse files
committed
Mark get_c_array as deprecated
1 parent fe60e16 commit 17b49d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/boost/array.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,15 +374,17 @@ namespace boost {
374374
x.swap(y);
375375
}
376376

377-
// Specific for boost::array: simply returns its elems data member.
377+
// undocumented and obsolete
378378
template <typename T, std::size_t N>
379+
BOOST_DEPRECATED( "please use `elems` instead" )
379380
T(&get_c_array(boost::array<T,N>& arg))[N]
380381
{
381382
return arg.elems;
382383
}
383384

384385
// Const version.
385386
template <typename T, std::size_t N>
387+
BOOST_DEPRECATED( "please use `elems` instead" )
386388
const T(&get_c_array(const boost::array<T,N>& arg))[N]
387389
{
388390
return arg.elems;

0 commit comments

Comments
 (0)