diff --git a/uppsrc/Core/Complex.h b/uppsrc/Core/Complex.h index 23cbceb8d..a3808e0ad 100644 --- a/uppsrc/Core/Complex.h +++ b/uppsrc/Core/Complex.h @@ -20,7 +20,8 @@ struct Complex : std::complex template<> inline bool IsNull(const Complex& r) { return r.real() < DOUBLE_NULL_LIM || r.imag() < DOUBLE_NULL_LIM; } template<> inline unsigned GetHashValue(const Complex& x) { return CombineHash(x.real(), x.imag()); } -template<> inline String AsString(const Complex& x) { return String().Cat() << "(" << x.real() << "," << x.imag() << ")"; } +template<> inline String AsString(const std::complex& x) { return String().Cat() << "(" << x.real() << "," << x.imag() << ")"; } +template<> inline String AsString(const Complex& x) { return AsString((const std::complex&)x); } template<> inline Stream& operator%(Stream& s, Complex& c) {