__traits(getAttributes, ...) gets attributes for the first overload only

NX via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 7 15:52:38 PST 2015


On Sunday, 6 December 2015 at 02:00:30 UTC, Andrei Alexandrescu 
wrote:
> Yah, error is the way to go. -- Andrei

Can I ask a question?:
Why we don't have a way to get an exact overload of function?
Something like:

void foo(int i);
int foo(float f);
//...
int function(float) foop = &foo::(float);


More information about the Digitalmars-d mailing list