For the new std.variant

Jesse Phillips jessekphillips+D at gmail.com
Mon Oct 31 08:50:42 PDT 2011


typedef shouldn't exist anymore, use alias.

Steve Teale Wrote:

> Robert,
> 
> Maybe you can fix this along the way:
> 
> import std.variant;
> struct B
> {
>    int p, q, r, s;
> }
> typedef B C;
> 
> void main()
> {
>    B b;
>    C c;
>    b = c;   // ok
>    Variant v = c;
>    assert(v.convertsTo!(B));   // no dice
> }
> 
> Steve



More information about the Digitalmars-d mailing list