This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
??? in std::complex
- From: Paolo Carlini <pcarlini at suse dot de>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Cc: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Date: Wed, 25 May 2005 14:32:49 +0200
- Subject: ??? in std::complex
Hi everyone, hi Gaby,
I noticed, toward the end of the header:
// These bits have to be at the end of this file, so that the
// specializations have all been defined.
// ??? No, they have to be there because of compiler limitation at
// inlining. It suffices that class specializations be defined.
inline
complex<float>::complex(const complex<double>& __z)
: _M_value(__z.__rep()) { }
...
...
Now, AFAIK, inlining limitations related to ordering are not present
anymore, and I'm wondering whether we can implement the above more
cleanly, as initially hoped... but I'm not 100% sure about the hopes
themselves ;) Clarifications?
Thanks in advance,
Paolo.