[Boost-bugs] [Boost C++ Libraries] #1502: Invalid matrix_indirect / vector_indirect construction with shortcuts

Subject: [Boost-bugs] [Boost C++ Libraries] #1502: Invalid matrix_indirect / vector_indirect construction with shortcuts
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-12-06 03:42:24


#1502: Invalid matrix_indirect / vector_indirect construction with shortcuts
---------------------------------------------------+------------------------
 Reporter: Stanislav Funiak <sfuniak_at_[hidden]> | Owner: guwi17
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: uBLAS
  Version: Boost 1.34.1 | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 I'm using the indirect array proxies with
 BOOST_UBLAS_ENABLE_PROXY_SHORTCUTS defined. The template parameters of
 matrix_indirect / vector_indirect in matrix_expression / vector_expression
 are invalid.

 See lines 372-381 in expression_types.hpp (in SVN revision 39369).
 Changing matrix_indirect<E, A > to matrix_indirect<E,indirect_array<A> >
 seems to solve the problem.

 {{{
 #define BOOST_UBLAS_ENABLE_PROXY_SHORTCUTS

 #include <vector>
 #include <boost/numeric/ublas/matrix.hpp>
 #include <boost/numeric/ublas/vector.hpp>
 #include <boost/numeric/ublas/matrix_proxy.hpp>
 #include <boost/numeric/ublas/vector_proxy.hpp>

 int main()
 {
   using namespace boost::numeric::ublas;
   indirect_array<std::vector<std::size_t> > ia;
   matrix<double> m;
   vector<double> v;
   m(ia,ia); // compilation error
   v(ia); // compilation error
 }
 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1502>
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:49:57 UTC