For the new std.variant

Steve Teale steve.teale at britseyeview.com
Mon Oct 31 03:30:40 PDT 2011


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