Temple: Compile time, embedded D templates

Nicolas Sicard dransic at gmail.com
Fri Jan 3 09:50:20 PST 2014


On Thursday, 2 January 2014 at 08:36:24 UTC, Dylan Knutson wrote:
> The reason for this is that std.variant.Variant isn't CTFEable, 
> because it uses memcpy in opAssign. I'd consider that a Phobos 
> bug; perhaps there is a way to make std.variant CTFE 
> compatible? That'd allow for a much wider (and more useful) 
> range of templates to be evaluated at compile time.

I wish Variant worked at compile time myself. Did you file a 
bug/enhancement request? (I couldn't find one in bugzilla).


More information about the Digitalmars-d-announce mailing list