Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59028 - sandbox/numeric_bindings/boost/numeric/bindings/blas/level1
From: rutger_at_[hidden]
Date: 2010-01-15 04:53:57


Author: rutger
Date: 2010-01-15 04:53:56 EST (Fri, 15 Jan 2010)
New Revision: 59028
URL: http://svn.boost.org/trac/boost/changeset/59028

Log:
const-correctness level1/set

Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/set.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/set.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/set.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/blas/level1/set.hpp 2010-01-15 04:53:56 EST (Fri, 15 Jan 2010)
@@ -38,7 +38,7 @@
 //
 template< typename VectorX >
 inline void
-set( typename value< VectorX >::type a, VectorX& x ) {
+set( const typename value< VectorX >::type a, VectorX& x ) {
     BOOST_STATIC_ASSERT( (bindings::is_mutable< VectorX >::value) );
     std::fill( bindings::begin(x), bindings::end(x), a );
 }
@@ -49,7 +49,7 @@
 //
 template< typename VectorX >
 inline void
-set( typename value< VectorX >::type a, const VectorX& x ) {
+set( const typename value< const VectorX >::type a, const VectorX& x ) {
     BOOST_STATIC_ASSERT( (bindings::is_mutable< const VectorX >::value) );
     std::fill( bindings::begin(x), bindings::end(x), a );
 }


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