Re: Metaprogramming work around

2012-04-17 Thread Dmitry Olshansky
On 17.04.2012 12:28, Erèbe wrote: Hi, I'm working on some metaprogramming code which implement a Factory and generate an enum from a list of string. So here my questions : 1) The documentation say mixin templates could take as TemplateParameterList a TemplateParameter , TemplateParameterList

Re: Metaprogramming work around

2012-04-17 Thread Erèbe
On Tuesday, 17 April 2012 at 10:29:56 UTC, Kenji Hara wrote: On Tuesday, 17 April 2012 at 08:28:45 UTC, Erèbe wrote: Hi, I'm working on some metaprogramming code which implement a Factory and generate an enum from a list of string. So here my questions : 1) The documentation say mixin

Re: Metaprogramming work around

2012-04-17 Thread Kenji Hara
On Tuesday, 17 April 2012 at 12:04:44 UTC, Erèbe wrote: [snip] There is something I still don't understand : mixin template Foo( T... ) { //Code here } mixin Foo!( Hello, Word ); Good T is TemplateTypeParameter, and matches any kind of template arguments - types, values, and symbols.

Re: Metaprogramming work around

2012-04-17 Thread Erèbe
On Tuesday, 17 April 2012 at 12:46:28 UTC, Kenji Hara wrote: On Tuesday, 17 April 2012 at 12:04:44 UTC, Erèbe wrote: [snip] There is something I still don't understand : mixin template Foo( T... ) { //Code here } mixin Foo!( Hello, Word ); Good T is TemplateTypeParameter, and matches