ImplicitConversionTargets opposite
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri May 22 01:49:30 PDT 2015
On Thursday, 21 May 2015 at 21:49:55 UTC, Freddy wrote:
> std.traits has ImplicitConversionTargets.
> Is there any template that returns the types that can implicty
> convert to T?
I doubt that, because it's an open set (alias this, inheritance).
However, it should be possible to iterate over all types in a
given module, and select only those that are implicitly
convertible to your type.
More information about the Digitalmars-d-learn
mailing list