[Boost-bugs] [Boost C++ Libraries] #10002: No swap for mapped_vector::reference

Subject: [Boost-bugs] [Boost C++ Libraries] #10002: No swap for mapped_vector::reference
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-02 16:19:21


#10002: No swap for mapped_vector::reference
---------------------------------------------------+---------------------
 Reporter: Christian Adaker <christian.adaker@…> | Owner: guwi17
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: uBLAS
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
---------------------------------------------------+---------------------
 Hi.

 When compiling the following code
 {{{#!c++
 #include <boost/numeric/ublas/lu.hpp>
 #include <boost/numeric/ublas/matrix.hpp>
 #include <boost/numeric/ublas/vector_sparse.hpp>

 void f(boost::numeric::ublas::matrix<double> &m,
        boost::numeric::ublas::permutation_matrix<unsigned long> &pm,
        boost::numeric::ublas::mapped_vector<double> &v) {
     boost::numeric::ublas::lu_substitute(m, pm, v);
 }
 }}}

 with gcc 4.7 on linux, I get a compile error which at its core has

 /usr/include/boost/numeric/ublas/lu.hpp:71:17: error: no matching function
 for call to ‘swap(boost::numeric::ublas::mapped_vector<double>::reference,
 boost::numeric::ublas::mapped_vector<double>::reference)’

 Shouldn't this be an allowed use of the classes involved?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10002>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC