Boost.units ported to D
David
d at dav1d.de
Mon Feb 11 09:30:23 PST 2013
> And finally, there is the function convert (line 3666). It needs some
> cleanup, but this is the function used to explicitly convert from a
> quantity to another. I haven't decided on the actual syntax yet, but in
> Boost.units casting is used (e.g., quantity<cgs::length> L1 =
> static_cast<quantity<cgs::length> >(L2)). Any ideas?
You could make: to!unit(12) possible (to from std.conv)
More information about the Digitalmars-d
mailing list