File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -374,33 +374,6 @@ namespace boost {
374374 x.swap (y);
375375 }
376376
377- #if defined(__SUNPRO_CC)
378- // Trac ticket #4757; the Sun Solaris compiler can't handle
379- // syntax like 'T(&get_c_array(boost::array<T,N>& arg))[N]'
380- //
381- // We can't just use this for all compilers, because the
382- // borland compilers can't handle this form.
383- namespace detail {
384- template <typename T, std::size_t N> struct c_array
385- {
386- typedef T type[N];
387- };
388- }
389-
390- // Specific for boost::array: simply returns its elems data member.
391- template <typename T, std::size_t N>
392- typename detail::c_array<T,N>::type& get_c_array (boost::array<T,N>& arg)
393- {
394- return arg.elems ;
395- }
396-
397- // Specific for boost::array: simply returns its elems data member.
398- template <typename T, std::size_t N>
399- typename detail::c_array<T,N>::type const & get_c_array (const boost::array<T,N>& arg)
400- {
401- return arg.elems ;
402- }
403- #else
404377// Specific for boost::array: simply returns its elems data member.
405378 template <typename T, std::size_t N>
406379 T (&get_c_array (boost::array<T,N>& arg))[N]
@@ -414,7 +387,6 @@ namespace boost {
414387 {
415388 return arg.elems ;
416389 }
417- #endif
418390
419391#if 0
420392 // Overload for std::array, assuming that std::array will have
You can’t perform that action at this time.
0 commit comments