Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange IHasSourceInfo interface #4859

Open
asl opened this issue Aug 10, 2024 · 0 comments
Open

Strange IHasSourceInfo interface #4859

asl opened this issue Aug 10, 2024 · 0 comments
Labels
question This is a topic requesting clarification.

Comments

@asl
Copy link
Contributor

asl commented Aug 10, 2024

The definition of IHasSourceInfo interface is quite strange:

class IHasSourceInfo {
 public:
    virtual SourceInfo getSourceInfo() const = 0;
    virtual cstring toString() const = 0;
    virtual ~IHasSourceInfo() {}
};

Essentially it demands the presence of toString method in addition to having a SourceInfo Why it is so?

@asl asl added the question This is a topic requesting clarification. label Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a topic requesting clarification.
Projects
None yet
Development

No branches or pull requests

1 participant