defined but not used ??
-
Ich habe folgenden Code den ich in std::max_element nutze:
double maximum = abs(*std::max_element( d->timeArray.begin(), d->timeArray.end(), compareComplexAmplitude ));static bool compareComplexAmplitude ( const std::complex<double> & lhs, const std::complex<double> & rhs) { return abs(lhs) < abs(rhs); }bekomme aber diese Warnung - obwohl der Code korrekt genutzt wird.
warning: 'bool MathExtensions::compareComplexAmplitude(const std::complex<double>&, const std::complex<double>&)' defined but not used
was sagt mir das jetzt?
-
pospiech schrieb:
was sagt mir das jetzt?
Dass ein komplettes, minimales, kompilierbares Beispiel besser ist?