We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A lot of getter functions are written like
const type getValue() const {return value;}
where the compiler complains about the first const . (https://stackoverflow.com/questions/21478342/c-const-in-getter https://arne-mertz.de/2016/07/const-correctness/) The correct way would be to write
const
type getValue() const {return value;}
which does not alter the state of the object.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A lot of getter functions are written like
where the compiler complains about the first
const
.(https://stackoverflow.com/questions/21478342/c-const-in-getter
https://arne-mertz.de/2016/07/const-correctness/)
The correct way would be to write
which does not alter the state of the object.
The text was updated successfully, but these errors were encountered: