static foreach and inline if

anonymous anonymous at example.com
Sat Jul 27 12:06:47 PDT 2013


On Saturday, 27 July 2013 at 17:14:35 UTC, JS wrote:
> The tIf doesn't work properly but I'm not sure why
[...]
> template tIf(bool cond, alias T)

Lower case 'f' here, ...

> {
> 	static if (cond) alias tIF = T; else alias tIF = tuple!();

... upper case 'F's here.


More information about the Digitalmars-d-learn mailing list