This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/12961] New: Problem with generic complex constructor


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]