-
-
Notifications
You must be signed in to change notification settings - Fork 262
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I was wondering about this example (source quoted below).
Y has an overload set for f that container int f(), int f(int), int f(double), int f(float) but from the class declaration to the human reader
only f(float is visible and using X::f suggests there are more.
Does it make sense to spell out the using declared overload set in
cppinsights.io?
I think it would be nice to see what one imports with the using declaration.
I see in cppinsights one can somewhat infer what's going on on the call site
int one = static_cast<X&>(y).f(...)vs
int two = y.f(...)This reveals from which class f is used. But the full overload set for f is
not visible.
Opinions/comments?
class sources
struct X{
int f();
int f(int);
int f(double);
};
struct Y:X {
int f(float);
using X::f;
};Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request