Concepts like c++20 with specialized overload resolution.
vushu
danvu.hustle at gmail.com
Sat May 27 13:50:41 UTC 2023
On Saturday, 27 May 2023 at 13:42:29 UTC, Basile B. wrote:
> On Saturday, 27 May 2023 at 13:23:38 UTC, vushu wrote:
>> [...]
>> Is there something equivalent in dlang, doesn't seem like d
>> support specialized overload?
>
> D solution is called [template
> constraints](https://dlang.org/spec/template.html#template_constraints).
Yes I know there is template constraint, but not with specialized
overloading right?
so you need to use static if for checking if it hasmagma.
More information about the Digitalmars-d-learn
mailing list