Generating an enum from a tuple of Types?

Stanislav Blinov stanislav.blinov at gmail.com
Sat Jan 25 08:03:57 PST 2014


On Saturday, 25 January 2014 at 15:38:39 UTC, Johannes Pfau wrote:
> Is it possible to generate a enum from a tuple of types without 
> string
> mixins?
> ------------
> struct S(Types...)
> {
>     enum Tag
>     {
>         //?
>     }
> }
> ------------



Without mixins altogether... dunno. But nothing stops you from 
making a eponymous template :)

http://dpaste.dzfl.pl/0af9dd7e


More information about the Digitalmars-d-learn mailing list