2 ms·
They will share the same reference count. In fact you can make two shared_ptrs to arbitrary types share the same reference count (although in this case there is
by gpderetta 7y ago
They will share the same reference count. In fact you can make two shared_ptrs to arbitrary types share the same reference count (although in this case there is no implicit conversion and you need to use the explicit aliasing constructor); it is useful for interior pointers for example.