Re: [Boost-bugs] [Boost C++ Libraries] #4399: Make the free function 'size' support the uBLAS traits system and better work with expression types

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4399: Make the free function 'size' support the uBLAS traits system and better work with expression types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-20 21:27:15


#4399: Make the free function 'size' support the uBLAS traits system and better
work with expression types
--------------------------------------------------------+-------------------
  Reporter: Marco Guazzone <marco.guazzone@…> | Owner: guwi17
      Type: Patches | Status: new
 Milestone: Boost 1.44.0 | Component: uBLAS
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------------------+-------------------

Comment (by Marco Guazzone <marco.guazzone@…>):

 At the end I was able to create a patch for size.hpp which does not break
 back compatibility.
 So ignore the initially submitted patch (''size-
 allow_expr_and_break_back_comp.patch'').

 I admit the real credits go to Daniel & Stefan, two guys that suggested to
 me the way to go.
 For more info see:
 [http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/bd5080b28865f826]

 Summary of changes:
 * Use of ublas type-traits system (e.g. typename
 matrix_traits<M>::size_type).
 * Explicit use of matrix_/vector_expression in function arguments (e.g.
 size(matrix_expression<M> const& m).
 * Call to size<1>(v), with v a vector expression, is legal and returns the
 length of the vector-
   [[BR]]
   '''''Do you like it?'''''

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4399#comment:2>
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:04 UTC