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

refactor const std::shared_ptr<T> to std::shared_ptr<const T> #1293

Closed
zhanghaohit opened this issue Feb 23, 2022 · 2 comments
Closed

refactor const std::shared_ptr<T> to std::shared_ptr<const T> #1293

zhanghaohit opened this issue Feb 23, 2022 · 2 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@zhanghaohit
Copy link
Collaborator

It should be the std::shared_ptr<const T>, which means the data pointed by the shared_ptr cannot be changed rather than the shared_ptr itself cannot be changed.

e.g., const std::shared_ptr<OptionsMap> options_

@IZUMI-Zu
Copy link
Contributor

Can I have a try?

@lumianph
Copy link
Collaborator

Can I have a try?

sure! I have assigned to you. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants