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

Feature/ygm ptr constness #223

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

steiltre
Copy link
Collaborator

Fixes constness issue with dereferencing ygm_ptr<T>. As is, operator->() on a const ygm_ptr<T> returns a const T*, giving a pointer to const object instead of const pointer to object.

Checking here, const smart pointers return a T * when calling operator->(), but I could see an argument for this returning a const pointer instead.

@steiltre steiltre changed the base branch from master to v0.7-dev July 31, 2024 17:27
@steiltre steiltre merged commit 73df3fc into LLNL:v0.7-dev Aug 1, 2024
8 checks passed
@steiltre steiltre deleted the feature/ygm_ptr_constness branch August 28, 2024 03:06
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.

1 participant