avoid unwrapping delayed expressions potentially captured by the Proxy

This commit is contained in:
conrad
2024-06-30 14:26:40 +10:00
parent 6e6657e2f0
commit 508ebe3deb
+2 -2
View File
@@ -3365,9 +3365,9 @@ subview_col<eT>::operator=(const Base<eT,T1>& expr)
{
arma_debug_sigprint();
if( (is_Mat<T1>::value || is_Mat<typename Proxy<T1>::stored_type>::value) && (Proxy<T1>::has_subview == false) && (quasi_unwrap<T1>::has_subview == false) )
if(is_Mat<T1>::value)
{
const quasi_unwrap<T1> U(expr.get_ref());
const unwrap<T1> U(expr.get_ref());
arma_conform_assert_same_size(subview<eT>::n_rows, uword(1), U.M.n_rows, U.M.n_cols, "copy into submatrix");