??? in std::complex

Paolo Carlini pcarlini@suse.de
Wed May 25 12:32:00 GMT 2005


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.



More information about the Libstdc++ mailing list