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

Added future compatible alias(lhs) syntax

svn path=/trunk/boost/boost/numeric/ublas/; revision=29668
This commit is contained in:
Michael Stevens
2005-06-18 08:18:12 +00:00
parent 3ef89cbf51
commit 43ae3cd047

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 {