Ver código fonte
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
15 arquivos alterados com 38 adições e 37 exclusões
Carregando…
Reference in new issue