Browse Source
Taking a const std::shared_ptr& doesnt make sense, as it doesnt increase the reference count and the object inside the pointer is still modifiable. Return std::shared_ptr by value, returning by reference wont increase the reference count and RVO (return value optimization) makes the const concern moot.master
Riyyi
4 years ago
15 changed files with 38 additions and 37 deletions
Loading…
Reference in new issue