Boost logo

Boost-Commit :

From: thomas.klimpel_at_[hidden]
Date: 2008-05-19 04:19:31


Author: klimpel
Date: 2008-05-19 04:19:30 EDT (Mon, 19 May 2008)
New Revision: 45537
URL: http://svn.boost.org/trac/boost/changeset/45537

Log:
MSVC 9.0 doesn't use partial specialization "V const" for "const double[10]"

Text files modified:
   sandbox/libs/numeric/bindings/atlas/utils.h | 7 +++++++
   1 files changed, 7 insertions(+), 0 deletions(-)

Modified: sandbox/libs/numeric/bindings/atlas/utils.h
==============================================================================
--- sandbox/libs/numeric/bindings/atlas/utils.h (original)
+++ sandbox/libs/numeric/bindings/atlas/utils.h 2008-05-19 04:19:30 EDT (Mon, 19 May 2008)
@@ -28,6 +28,13 @@
   static ref_t elem (V const& v, size_t i) { return v[i]; }
 };
 
+template <typename V, int N>
+struct vct_access_traits<const V[N]> {
+ typedef V val_t;
+ typedef val_t ref_t;
+ static ref_t elem (const V v[N], size_t i) { return v[i]; }
+};
+
 template <typename V>
 inline
 typename vct_access_traits<V>::ref_t elem_v (V& v, size_t i) {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk