revert modified alias checking due to ill-defined use case

This commit is contained in:
conrad
2022-06-09 11:28:24 +10:00
parent 5b1246c039
commit 3ff089c488
6 changed files with 62 additions and 63 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ struct unwrap_cube< Cube<eT> >
const Cube<eT>& M;
template<typename eT2>
arma_inline bool is_alias(const Cube<eT2>& X) const { return (void_ptr(M.mem) == void_ptr(X.mem)); }
arma_inline bool is_alias(const Cube<eT2>& X) const { return (void_ptr(&M) == void_ptr(&X)); }
};