Getting the overload set of a template
Simen Kjærås
simen.kjaras at gmail.com
Thu Apr 19 20:41:36 UTC 2018
On Thursday, 19 April 2018 at 13:57:04 UTC, Simen Kjærås wrote:
> On Tuesday, 17 April 2018 at 14:22:27 UTC, Arafel wrote:
>> Hi!
>>
>> Is there any way to get the full set of templates that are
>> "overloaded" (in my case, based on constraints)?
>
> Currently, there is no way (that I've found, at least) to do
> this. If you have a workaround, that's great, but there really
> should be a way - probably __traits(getOverloads). Having
> __traits(getOverloads) return templates as well should fix some
> of the issues __traits(getOverloads) has, as a bonus.
https://github.com/dlang/dmd/pull/8195
--
Simen
More information about the Digitalmars-d-learn
mailing list