How to check if a class has a specific overload for member x?
Hipreme
msnmancini at hotmail.com
Sun Jul 31 19:25:51 UTC 2022
I wish to generate some functions using mixin template and I wish
to check if the current class already has an specific overload
with parameters (A, B).
What I'm currently trying is doing `__traits(getOverloads, T,
"foo")`, and then checking if its type are equal. But it seems
hackish, and I would like to make something like
`hasOverload!(Test, "foo", int(int a, int b) const)` or something
like that.
More information about the Digitalmars-d-learn
mailing list