I wonder if I’m doing something wrong.
I’m making an object and assigning it right to a refcountedPtr. I then pass it around as a refcountedPtr - I just use the template class in my method declarations.
I’m getting asserts and crashes with dec < 0. Two possibilities, one is that my user classes can’t access the refcountedPtrs properly in declarations.
The other is that it’s being decremented on two threads at once, somehow.