avoid unwrapping delayed expressions potentially captured by the Proxy
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user