53 lines
2.1 KiB
Diff
53 lines
2.1 KiB
Diff
From ca2ff08600fa63c8dea90897cfe649427bf58a6e Mon Sep 17 00:00:00 2001
|
|
From: Nasos <nasos_i@hotmail.com>
|
|
Date: Wed, 5 Aug 2015 10:17:51 -0400
|
|
Subject: [PATCH] Corrected inline issue in storage.hpp
|
|
|
|
---
|
|
include/boost/numeric/ublas/storage.hpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/include/boost/numeric/ublas/storage.hpp b/include/boost/numeric/ublas/storage.hpp
|
|
index 8821309..19bc907 100644
|
|
--- a/include/boost/numeric/ublas/storage.hpp
|
|
+++ b/include/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> ()) {}
|
|
|
|
From b805369990aed13a2c837f642a280a7b6352e012 Mon Sep 17 00:00:00 2001
|
|
From: Nasos <nasos_i@hotmail.com>
|
|
Date: Wed, 5 Aug 2015 10:31:25 -0400
|
|
Subject: [PATCH] Corrected inline issue in storage.hpp
|
|
|
|
---
|
|
include/boost/numeric/ublas/storage.hpp | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/include/boost/numeric/ublas/storage.hpp b/include/boost/numeric/ublas/storage.hpp
|
|
index 19bc907..bd64892 100644
|
|
--- a/include/boost/numeric/ublas/storage.hpp
|
|
+++ b/include/boost/numeric/ublas/storage.hpp
|
|
@@ -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);
|
|
}
|