is_placeholder question

Paolo Carlini paolo.carlini@oracle.com
Sun Nov 20 23:08:00 GMT 2011


On 11/20/2011 11:40 PM, Jonathan Wakely wrote:
> Do we expect this to work?
>
> static_assert( is_placeholder<decltype(placeholders::_1)>::value, "" );
>
> It doesn't, because our placeholders are declared const.
>
> I'm not sure it's required to work, but it is surprising that it doesn't.
>
> We could make it work by adding another is_placeholder partial
> specialization for const _Placecholder types.
Sounds good to me.

Paolo.



More information about the Libstdc++ mailing list