You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/10/12 00:00:04 UTC

[GitHub] [trafficserver] SolidWallOfCode commented on issue #5735: Replace Ptr with std::shared_ptr

SolidWallOfCode commented on issue #5735:
URL: https://github.com/apache/trafficserver/issues/5735#issuecomment-940526318


   The difference is `Ptr` puts the reference count in the object. With `shared_ptr` the reference count is in potentially unrelated memory. Therefore the `Ptr` reference count can always correctly reconstructed from the object, which is not the case for `share_ptr`. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org