This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Missing operator overload in complex.h
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Missing operator overload in complex.h
- From: David Ronis <ronis at ronispc dot chem dot mcgill dot ca>
- Date: Wed, 23 May 2001 11:14:47 -0400
- Reply-To: ronis at onsager dot chem dot mcgill dot ca
I'm trying to compile some old C++ code using gcc version 3.0 20010508.
First, it seems that double_complex is no longer defined in <complex>
(but still is in <complex.h>)
Second, I get the following
no match for `double_complex * int&' operator
for the following line
tmp=double_complex(cos(sum),sin(sum))*iz;
(iz is an int, tmp is double_complex and the rest are doubles).
It's trivial to fix, but the overload should be added.
David