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

Subject: [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-07-02 21:56:02


#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
 Keywords: |
-------------------------------------------------------+--------------------
 Actually the implementation of the '''size''' free function has two weak
 points:
 1. It does not make use of the new uBLAS traits system introduced by
 Gunter.[[BR]]
   E.g.: ''typename ExprT::size_type'' should become ''typename
 matrix_traits<ExprT>::size_type''

 2. It does not fully support expression types. The current support is
 error prone and not user-friendly.[[BR]]
   E.g.: if ''ExprT'' is an expression type and ''e'' is a variable of type
 ''ExprT'', then one has to call ''size(e())'' instead of simply
 ''size(e)''.

 I suggest to change the '''size''' operation in order to fix the above
 issues.

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