On Thu, Aug 19, 2010 at 22:16, Simen kjaeraas <[email protected]>wrote:
> Philippe Sigaud <[email protected]> wrote: > > And, looking in my codebase, here is what I'm using ;) >> >> template Init(T...) >> { >> T Init; >> } >> > > Doh. I believe this is slightly better, though: > > template Init( T... ) { > enum T Init; > } > > :p > What, that's *five* more characters, five! I win, I win! More seriously, yours might be more 'solid', but isn't enum implicit in this case? Anyway, T.init should exist, since "T Init;" works... Philippe
