Bug 2798 – std.variant constructor compatible with D variadics

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-04-03T22:51:00Z
Last change time
2015-06-09T01:21:08Z
Assigned to
andrei
Creator
dhasenan

Comments

Comment #0 by dhasenan — 2009-04-03T22:51:41Z
std.variant should offer a constructor that can be used with a void*, TypeInfo pair and thus be compatible with D variadic functions. Its current design relies on a large number of compile-time checks, though, and phobos entirely lacks high-level runtime reflection facilities, so this would be difficult.
Comment #1 by andrei — 2010-09-26T14:26:38Z
By design, Variant cannot support such a feature.