-
-
Notifications
You must be signed in to change notification settings - Fork 264
resolved type names for types defined in class bodies lack their "namespace" #255
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
comparing this and this example, there is a custom iterator class in both cases.
Abbreviated, in the former, the iterator definition is in another class
struct Iterable {
struct Iterator {
};
};In the latter, the iterator is defined in some namespace
namespace MYNAMESPACE {
struct Iterator {
};
}
struct Iterable {
};In both cases Iterable::begin() returns an Iterator.
Yet, in the cppinsights output, the former iterator appears as Iterator instead of Iterable::Iterator. In the latter case, the leading MYNAMESPACE:: is printed correctly.
I think it would be nice if the leading Iterable:: would also be printed in the former case (for disambiguation, should someone run into a case where that's necessary), and such that the printout of cppinsights is valid code.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request