Why doesn't <ctgmath> include <ccomplex>?

Jonathan Wakely jwakely@redhat.com
Thu Oct 2 15:52:00 GMT 2014


On 17/09/14 16:55 +0200, Marc Glisse wrote:
>On Wed, 17 Sep 2014, Jonathan Wakely wrote:
>
>>Our <ctgmath> only includes <cmath>, not <ccomplex> as required by
>>26.8 [c.math] paragraph 1.
>>
>>Is that intentional?
>
>Probably not (I don't know), but if you change it, please include 
><complex> instead of the nonsensical (and equivalent) <ccomplex>. I 
>hope we can deprecate that one at some point, I would even be in favor 
>of adding a #warning to it asking why on earth the user decided to 
>include it.

Done, with the attached patch. Tested x86_64-linux, committed to
trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2484 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20141002/08eb42b4/attachment.bin>


More information about the Libstdc++ mailing list