Subject: [Boost-bugs] [Boost C++ Libraries] #4599: template argument identifiers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-26 13:04:52
#4599: template argument identifiers
---------------------------------------+------------------------------------
Reporter: jan.boehme@⦠| Owner: guwi17
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: uBLAS
Version: Boost 1.44.0 | Severity: Problem
Keywords: |
---------------------------------------+------------------------------------
Hi,
it would be helpful if template argument identifiers like '''MATRIX''' in
/boost/numeric/ublas/traits.hpp
template < class '''MATRIX''' >
struct mutable_matrix_traits
: mutable_container_traits <'''MATRIX'''> {
typedef typename '''MATRIX'''::iterator1 iterator1;
typedef typename '''MATRIX'''::iterator2 iterator2;
};
would follow well-established c/c++ variable name conventions instead of
that of the c preprocessor because of conflicts with exactly that. I'd
suggest something like the following instead and would provide patches if
favored.
template < class '''matrix_type''' >
struct mutable_matrix_traits
: mutable_container_traits <'''matrix_type'''> {
typedef typename '''matrix_type'''::iterator1 iterator1;
typedef typename '''matrix_type'''::iterator2 iterator2;
};
Thanks, Jan.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4599> 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