Skip to content

Commit

Permalink
Remove idef-ed out overload of get_c_array
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 26, 2025
1 parent 17b49d8 commit 6447b40
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions include/boost/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,24 +390,6 @@ namespace boost {
return arg.elems;
}

#if 0
// Overload for std::array, assuming that std::array will have
// explicit conversion functions as discussed at the WG21 meeting
// in Summit, March 2009.
template <typename T, std::size_t N>
T(&get_c_array(std::array<T,N>& arg))[N]
{
return static_cast<T(&)[N]>(arg);
}

// Const version.
template <typename T, std::size_t N>
const T(&get_c_array(const std::array<T,N>& arg))[N]
{
return static_cast<T(&)[N]>(arg);
}
#endif

template <class It> std::size_t hash_range(It, It);

template<class T, std::size_t N>
Expand Down

0 comments on commit 6447b40

Please sign in to comment.