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.
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos