refactor `const std::shared_ptr<T>` to `std::shared_ptr<const T>`
Closed this issue · 2 comments
zhanghaohit commented
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 commented
Can I have a try?
lumianph commented
Can I have a try?
sure! I have assigned to you. Thanks.