D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2798 - std.variant constructor compatible with D variadics
Summary: std.variant constructor compatible with D variadics
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Linux
: P2 enhancement
Assignee: Andrei Alexandrescu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-03 22:51 UTC by Neia Neutuladh
Modified: 2015-06-09 01:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Neia Neutuladh 2009-04-03 22:51:41 UTC
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 Andrei Alexandrescu 2010-09-26 14:26:38 UTC
By design, Variant cannot support such a feature.