diff options
Diffstat (limited to 'boost/numeric/ublas/storage.hpp')
-rw-r--r-- | boost/numeric/ublas/storage.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/numeric/ublas/storage.hpp b/boost/numeric/ublas/storage.hpp index 8821309dd5..bd648925a9 100644 --- a/boost/numeric/ublas/storage.hpp +++ b/boost/numeric/ublas/storage.hpp @@ -777,8 +777,8 @@ namespace boost { namespace numeric { namespace ublas { BOOST_UBLAS_INLINE shallow_array_adaptor (size_type size, pointer data): size_ (size), own_ (false), data_ (data, leaker<value_type> ()) {} - BOOST_UBLAS_INLINE template <size_t N> + BOOST_UBLAS_INLINE shallow_array_adaptor (T (&data)[N]): size_ (N), own_ (false), data_ (data, leaker<value_type> ()) {} @@ -833,13 +833,13 @@ namespace boost { namespace numeric { namespace ublas { void resize (size_type size, pointer data, value_type init) { resize_internal (size, data, init, true); } - BOOST_UBLAS_INLINE template <size_t N> + BOOST_UBLAS_INLINE void resize (T (&data)[N]) { resize_internal (N, data, value_type (), false); } - BOOST_UBLAS_INLINE template <size_t N> + BOOST_UBLAS_INLINE void resize (T (&data)[N], value_type init) { resize_internal (N, data, init, true); } |