C++ Stylistics

Rory McGuire rmcguire at neonova.co.za
Mon Jul 19 12:42:19 PDT 2010


On Mon, 19 Jul 2010 20:33:59 +0200, BLS <windevguy at hotmail.de> wrote:

> On 19/07/2010 10:58, Rory McGuire wrote:
>>
>> template isProperty(alias func) if (isCallable!(func)) {
>>      enum isProperty = (functionAttributes!(func) &
>> FunctionAttribute.PROPERTY)==0 ? false : true;
>> }
>
>
> THANKS Rory
>
> isProperty() should become part of phobos.

I suppose so, currently one needs to make a wrapper for all the function  
attributes that you
might want to detect.


More information about the Digitalmars-d mailing list