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

Make CollectionContextHolder::set take and store const IndexT #1747

Closed
PhilMiller opened this issue Apr 26, 2022 · 0 comments · Fixed by #1750
Closed

Make CollectionContextHolder::set take and store const IndexT #1747

PhilMiller opened this issue Apr 26, 2022 · 0 comments · Fixed by #1750
Assignees

Comments

@PhilMiller
Copy link
Member

The function signature static void set(IndexT* const set_idx, VirtualProxyType const& set_proxy) puts the const in the not-so-helpful place, denoting a constant pointer, not a pointer to a constant value. The holder should be promising not to modify the thing to which it's been given a pointer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants