PR 719: fix real/imag namespace conflict

This commit is contained in:
Gael Guennebaud
2019-10-08 09:15:17 +02:00
parent 7a43af1a33
commit 87427d2eaa
6 changed files with 25 additions and 17 deletions

View File

@@ -869,7 +869,7 @@ struct scalar_sign_op<Scalar,true> {
if (aa==real_type(0))
return Scalar(0);
aa = real_type(1)/aa;
return Scalar(real(a)*aa, imag(a)*aa );
return Scalar(a.real()*aa, a.imag()*aa );
}
//TODO
//template <typename Packet>