Skip to content

Why does JPH::Ref Exist #1490

Answered by jrouwe
cuppajoeman asked this question in Q&A
Feb 2, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

A smart pointer is a programming pattern. The standard library implements several types of smart pointers. std::shared_ptr is close to what Ref does. I try to avoid using the standard library as much as possible as the implementation varies from platform to platform and the implementations often have performance pitfalls that are quite unintuitive.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cuppajoeman
Comment options

@jrouwe
Comment options

Answer selected by cuppajoeman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants