8000 Returning const ref of member from const member function by Un-done · Pull Request #1052 · ETLCPP/etl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Returning const ref of member from const member function #1052

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

Conversation

Un-done
Copy link
Contributor
@Un-done Un-done commented Mar 24, 2025

The const marked function needs to return a const reference to a member variable.
Fixes compiler error: https://godbolt.org/z/7P1hr5Pbn

The `const` marked function needs to return a `const` reference to a member variable
@jwellbelove jwellbelove changed the base branch from master to pull-request/#1052-Returning-const-ref-of-member-from-const-member-function March 26, 2025 12:17
@jwellbelove jwellbelove merged commit c547b78 into ETLCPP:pull-request/#1052-Returning-const-ref-of-member-from-const-member-function Mar 26, 2025
63 checks passed
jwellbelove pushed a commit that referenced this pull request Mar 26, 2025
jwellbelove pushed a commit that referenced this pull request Mar 28, 2025
The `const` marked function needs to return a `const` reference to a member variable

Co-authored-by: Andreas Pelczer <pelczer@stoerk-tronic.com>
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 this pull request may close these issues.

2 participants
0