static foreach and inline if

anonymous anonymous at example.com
Sun Jul 28 13:59:59 PDT 2013


On Sunday, 28 July 2013 at 15:33:48 UTC, JS wrote:
> On Sunday, 28 July 2013 at 09:11:55 UTC, anonymous wrote:
>> On Sunday, 28 July 2013 at 08:38:40 UTC, JS wrote:
[...]
>> template Wrap(Stuff ...) {alias unwrap = Stuff;}
>> Select!(cond, Wrap!targs, Wrap!fargs).unwrap
>
> I tried to do that with tuple which is identical to your wrap 
> but was not successful... possibly because I did not unwrap 
> it...

If you're refering to that implementation of tuple:

On Saturday, 27 July 2013 at 17:14:35 UTC, JS wrote:
> template tuple(args...) { alias tuple = args; }

That's not exactly the same. It really must not be an eponymous 
template.


More information about the Digitalmars-d-learn mailing list