[libstdc++-v3] Typo in std_complex.h, patch included

Gabriel Dos Reis gdr@codesourcery.com
Tue Jan 9 18:45:00 GMT 2001


Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> writes:

| I believe there is a typo in line 507 of std_complex.h in fuction
| template<typename _Tp> inline complex<_Tp> pow(const complex<_Tp>&
| __x, const complex<_Tp>& __y). The line should read return exp(__y *
| log(__x)); instead of return exp(__x * log(__x));.

Good cacth!  Thanks.
The patch is in.

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


More information about the Libstdc++ mailing list