Limiting template functions to template instantiations of a struct

Namespace rswhite4 at googlemail.com
Wed Nov 6 14:52:56 PST 2013


On Wednesday, 6 November 2013 at 22:43:18 UTC, Dicebot wrote:
> On Wednesday, 6 November 2013 at 22:41:08 UTC, Atila Neves 
> wrote:
>> I know, but I keep having to refer back to that and even then 
>> I didn't know about the syntax these guys just posted! ;)
>
> Well, it is mentioned in the list of `is` usage cases down that 
> link. It is very ugly part of the language but definitely worth 
> spending some time to carefully investigate all the patterns - 
> damn powerful stuff.

There are so much more uglier things ... :P
Take a look at the scoped or ref counted implementation.


More information about the Digitalmars-d-learn mailing list