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).