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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user