[phobos] Is this a bug?
Sean Kelly
sean at invisibleduck.org
Fri Jun 18 21:00:31 PDT 2010
On Jun 18, 2010, at 8:51 PM, Sean Kelly wrote:
> Found it. I forgot you can't new a Tuple. This breaks:
>
> import std.typecons;
>
> void main()
> {
> alias Tuple!(int) Wrap;
> auto p = new Wrap;
> }
>
> I'll see about fixing Tuple instead of changing Variant.
It's because Tuple doesn't have a default ctor. Since this clearly causes problems with generic code, I think it's worth adding one. I'll sit on the checkin until tomorrow. Scream and yell if you think it's a terrible idea.
More information about the phobos
mailing list