New C++11 tuple_cat (aka, libstdc++/50159)

Paolo Carlini paolo.carlini@oracle.com
Sun Sep 11 17:48:00 GMT 2011


Hi,
> 2011/9/11 Paolo Carlini<paolo.carlini@oracle.com>:
>> ehm, forgot the attachments ;)
> Thanks Paolo for the quick integration. Let me comment
> that I believe that the empty specialization for __or_,
>
> template<>
> +    struct __or_<>
> +    : public std::true_type
> +    { };
>
> should be not be equal to true, but to false,
>
> template<>
> +    struct __or_<>
> +    : public std::false_type
> +    { };
>
> based on the same rationale why any_of returns false
> and all_of returns true for the degenerate empty range.
Excellent, I was missing the rationale for that.
> I also think that the std::qualifications of types such as
>
> pair, tuple, array, false_type, true_type
>
> in the added code should better be removed
> for consistency, but that is a minor point.
I adjusted this too. Moreover I marked tuple_cat as inline, I think we 
want it like that.

Paolo.

//////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_50159_2
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110911/5b77d841/attachment.ksh>


More information about the Libstdc++ mailing list