Problems with PR 21210

Zack Weinberg zack@codesourcery.com
Wed Jun 1 05:46:00 GMT 2005


Gabriel Dos Reis <gdr@integrable-solutions.net> writes:

> Zack Weinberg <zack@codesourcery.com> writes:
>
> | > This also depends on somebody not myself doing a not-insubstantial
> | > amount of core compiler work to make it happen; and somebody else
> | > jimmying the libstdc++ headers to match, presumably a lesser task.
> | 
> | I gotta wonder how much of the way there it would get us if we could
> | write
> | 
> |   template <typename T> class complex;
> |   template <>
> |   typedef _Complex double complex<double>;
>
> If we do that, we mutate C++ because we would have now introduced an
> implicit conversion of a std:complex<double> to its real part, where
> it did not exist before.

Bother.

That exhausts my store of helpful suggestions; I leave further
discussion to people who know this part of both standards.

zw



More information about the Gcc-patches mailing list