|
Boost : |
From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2002-08-01 11:08:38
In the specialisations for double and float type_traits
const_reference is defined as being T instead of const T&.
Due to this I can't get the address of the start of the data anymore
(needed for my BLAS bindings in the sandbox).
Following will patch it :
Index: traits.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/numeric/ublas/Attic/traits.hpp,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 traits.hpp
--- traits.hpp 26 Jul 2002 09:20:49 -0000 1.1.2.1
+++ traits.hpp 1 Aug 2002 16:00:13 -0000
@@ -57,7 +57,7 @@
template<>
struct type_traits<float> {
typedef float value_type;
- typedef float const_reference;
+ typedef float& const_reference;
typedef float real_type;
typedef double precision_type;
@@ -102,7 +102,7 @@
template<>
struct type_traits<double> {
typedef double value_type;
- typedef double const_reference;
+ typedef double& const_reference;
typedef double real_type;
#ifndef BOOST_UBLAS_USE_LONG_DOUBLE
typedef double precision_type;
@@ -152,7 +152,7 @@
template<>
struct type_traits<long double> {
typedef long double value_type;
- typedef long double const_reference;
+ typedef long double& const_reference;
typedef long double real_type;
typedef long double precision_type;
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk