Thomas Matelich
Tue Nov 10 13:54:00 GMT 1998

#include <vector>
#include <complex>
#include <algorithm>

int main()
   vector<complex<double> > compv(100, complex<double>(1.0, 1.0));
   vector<double> doubv(100);

   //transform(compv.begin(), compv.end(), doubv.begin(), abs);
   //error: no matching function for call to
   //`transform (complex<double> *, complex<double> *, double *,
{unknown type})'

   //transform(compv.begin(), compv.end(), doubv.begin(), abs<double>);
   //error: Internal compiler error 980715.

Thomas O Matelich
Senior Programmer
Zetec, Inc.

More information about the Gcc-bugs mailing list