Skip to content

[C++]: Remove const qualifiers where they have no effect #421

New issue

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

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

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

abbradar
Copy link
Contributor

This qualifier should have no effect because you are returning a copy.

@mjpt777
Copy link
Contributor

mjpt777 commented Dec 20, 2016

@tmontgomery Do you have a view on that making the next release?

@rigtorp
Copy link
Contributor

rigtorp commented Jan 16, 2017

Also so see #384

I recommend to enable warning -Wignored-const-qualifiers with this patch so we prevent this in the future.

@tmontgomery
Copy link
Contributor

@rigtorp is this still relevant given #384?

@rigtorp
Copy link
Contributor

rigtorp commented Feb 18, 2017

@tmontgomery No, #384 is a super set of this and will warn about these issues if reintroduced in the future.

@tmontgomery
Copy link
Contributor

Closing this. Per @rigtorp

@tmontgomery tmontgomery closed this Mar 1, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants