Re: ImplicitConversionTargets opposite

2015-05-22 Thread Baz via Digitalmars-d-learn
the line warping on this forum deserve a big slap in the face...

Re: ImplicitConversionTargets opposite

2015-05-22 Thread Baz via Digitalmars-d-learn
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? You can write something like this: --- import std.stdio; import std.traits; import std.typetuple; void main(string[]

Re: ImplicitConversionTargets opposite

2015-05-22 Thread via Digitalmars-d-learn
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 t

ImplicitConversionTargets opposite

2015-05-21 Thread Freddy via Digitalmars-d-learn
std.traits has ImplicitConversionTargets. Is there any template that returns the types that can implicty convert to T?