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

warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] #6

Open
Arniiiii opened this issue Oct 30, 2024 · 0 comments · May be fixed by #7
Open

warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] #6

Arniiiii opened this issue Oct 30, 2024 · 0 comments · May be fixed by #7

Comments

@Arniiiii
Copy link

/home/paxu/.cache/cpm/constexpr-to-string/a02450f1d117a38eb1c44b0c085769cb83df80d2/include/constexpr-to-string/to_string.hpp|61 col 15| warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
||    61 |     constexpr const auto data() const noexcept { return buf; }
||       |               ^~~~~
/home/paxu/.cache/cpm/constexpr-to-string/a02450f1d117a38eb1c44b0c085769cb83df80d2/include/constexpr-to-string/to_string.hpp|71 col 15| warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
||    71 |     constexpr const auto begin() const noexcept { return buf; }
||       |               ^~~~~
/home/paxu/.cache/cpm/constexpr-to-string/a02450f1d117a38eb1c44b0c085769cb83df80d2/include/constexpr-to-string/to_string.hpp|73 col 15| warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
||    73 |     constexpr const auto end() const noexcept { return buf + size(); }
||       |               ^~~~~
|| 3 warnings generated.

https://stackoverflow.com/questions/60212414/why-does-the-const-qualifier-on-return-type-have-no-effect-on-functions-that-a

@Arniiiii Arniiiii linked a pull request Oct 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant