This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] c++0x common_type patch
On Fri, Jul 4, 2008 at 9:13 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Hi Chris,
>
> thanks for the updated patch. The __typeof__ workaround makes me really nervous, I don't think we want to use it in new code, I'm wondering if we should instead wait for 36628 to be dealt with properly...
>
Yes, __typeof__ is a "works for me" hack. I don't know if its behavior
is exactly the same as decltype and if not, then it will give
incorrect results anyway.
>> I just want to make sure this is intentional and that common_type
>> isn't expected to try every permutation of the given types.
>
> this is also interesting. Did you consider raising the issue on comp.lang.c++.moderated?
>
I haven't, only because I've been going on the assumption that this is
intentional and haven't seen the issue raised anywhere else. I'll
bring up the issue to the moderated ML and see what the gurus have to
say.
Chris
> Paolo.
>
>