2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-20 15:12:16 +00:00

Added future compatible alias(lhs) syntax

[SVN r29668]
This commit is contained in:
Michael Stevens
2005-06-18 08:18:12 +00:00
parent 11ce12321f
commit a9ba673b9f

View File

@@ -88,6 +88,19 @@ namespace boost { namespace numeric { namespace ublas {
return noalias_proxy<const C> (lvalue);
}
// Future compatible syntax where lvalue is known to have an alias on the RHS
// alias(lhs) = rhs_expression
template <class C>
BOOST_UBLAS_INLINE
C& alias (C& lvalue) {
return lvalue;
}
template <class C>
BOOST_UBLAS_INLINE
const C& alias (const C& lvalue) {
return lvalue;
}
// Dimension accessors
namespace dimension {