This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/12961] New: Problem with generic complex constructor
- From: "Yves dot Renard at gmm dot insa-tlse dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2003 09:20:07 -0000
- Subject: [Bug libstdc++/12961] New: Problem with generic complex constructor
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The constructor for the template class std::complex<flt>
is different as the one for specialized complex classes
std::complex<float> std::complex<double> and std::complex<long double>
The one for the generic template :
complex(const _Tp& = _Tp(), const _Tp & = _Tp());
The one for std::complex<float>
complex(float = 0.0f, float = 0.0f);
When I use qd (a library for quatruple double) and
std::complex<qd_real>
I cannot initialize that kind of complex with
std::complex<qd_real> x(1)
because the imaginary part is not initialized.
This does not allow me to build completely generic algorithm for my library
GMM++ (see http://www.gmm.insa-tlse.fr/getfem/gmm.html)
--
Summary: Problem with generic complex constructor
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Yves dot Renard at gmm dot insa-tlse dot fr
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12961