How to alias for identity

2011-10-26 Thread Martin Nowak
I was using some templates to declare different parameters sets. template unitA() {...} template unitB() {...} template unitC() {...} I have a generic function that is parameterized by these units. void foo(alias unit) {...} Now unitA gets a specialization. void foo(alias unit:unitA!()) {} Bu

Re: How to alias for identity

2011-10-26 Thread Timon Gehr
On 10/26/2011 09:41 PM, Martin Nowak wrote: I was using some templates to declare different parameters sets. template unitA() {...} template unitB() {...} template unitC() {...} I have a generic function that is parameterized by these units. void foo(alias unit) {...} Now unitA gets a speciali

Re: How to alias for identity

2011-10-28 Thread Martin Nowak
On Wed, 26 Oct 2011 22:18:29 +0200, Timon Gehr wrote: On 10/26/2011 09:41 PM, Martin Nowak wrote: I was using some templates to declare different parameters sets. template unitA() {...} template unitB() {...} template unitC() {...} I have a generic function that is parameterized by these uni