Ticket #11207: patch_numeric-ublas-storage.hpp.diff
File patch_numeric-ublas-storage.hpp.diff, 1.1 KB (added by , 8 years ago) |
---|
-
boost/numeric/ublas/storage.hpp
777 777 BOOST_UBLAS_INLINE 778 778 shallow_array_adaptor (size_type size, pointer data): 779 779 size_ (size), own_ (false), data_ (data, leaker<value_type> ()) {} 780 BOOST_UBLAS_INLINE781 780 template <size_t N> 781 BOOST_UBLAS_INLINE 782 782 shallow_array_adaptor (T (&data)[N]): 783 783 size_ (N), own_ (false), data_ (data, leaker<value_type> ()) {} 784 784 … … 833 833 void resize (size_type size, pointer data, value_type init) { 834 834 resize_internal (size, data, init, true); 835 835 } 836 BOOST_UBLAS_INLINE837 836 template <size_t N> 837 BOOST_UBLAS_INLINE 838 838 void resize (T (&data)[N]) { 839 839 resize_internal (N, data, value_type (), false); 840 840 } 841 BOOST_UBLAS_INLINE842 841 template <size_t N> 842 BOOST_UBLAS_INLINE 843 843 void resize (T (&data)[N], value_type init) { 844 844 resize_internal (N, data, init, true); 845 845 }