diff --git a/include/boost/array.hpp b/include/boost/array.hpp index 19cd5061..82d759e6 100644 --- a/include/boost/array.hpp +++ b/include/boost/array.hpp @@ -374,33 +374,6 @@ namespace boost { x.swap(y); } -#if defined(__SUNPRO_CC) -// Trac ticket #4757; the Sun Solaris compiler can't handle -// syntax like 'T(&get_c_array(boost::array& arg))[N]' -// -// We can't just use this for all compilers, because the -// borland compilers can't handle this form. - namespace detail { - template struct c_array - { - typedef T type[N]; - }; - } - - // Specific for boost::array: simply returns its elems data member. - template - typename detail::c_array::type& get_c_array(boost::array& arg) - { - return arg.elems; - } - - // Specific for boost::array: simply returns its elems data member. - template - typename detail::c_array::type const& get_c_array(const boost::array& arg) - { - return arg.elems; - } -#else // Specific for boost::array: simply returns its elems data member. template T(&get_c_array(boost::array& arg))[N] @@ -414,7 +387,6 @@ namespace boost { { return arg.elems; } -#endif #if 0 // Overload for std::array, assuming that std::array will have