Any reference counted class instance must be inherited from ReferenceCountedObject. I assume the base class then holds the ref counter variable? Does this mean that the following the is legal to do and doesn’t lead to bugs:
ReferenceCountedObjectPtr<Something> pointer(new Something());
Something* temp_pointer = pointer.get();
ReferenceCountedObjectPtr<Something> pointer_2 = temp_pointer;
I.e. Does the reference counting work (or does it get messed up) if I move the reference couted object through a regular pointer and create a new ref counted pointer from that?
