2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-27 05:22:10 +00:00

Try 'safe' as a name for alias safe assignment

This commit is contained in:
Michael Stevens
2005-06-20 07:29:32 +00:00
parent 2238c66e08
commit e72b32571e

View File

@@ -88,16 +88,16 @@ 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
// Possible future compatible syntax where lvalue possible has an unsafe alias on the RHS
// safe(lhs) = rhs_expression
template <class C>
BOOST_UBLAS_INLINE
C& alias (C& lvalue) {
C& safe (C& lvalue) {
return lvalue;
}
template <class C>
BOOST_UBLAS_INLINE
const C& alias (const C& lvalue) {
const C& safe (const C& lvalue) {
return lvalue;
}