[#bsl-shared_ptr-0a-2constructor-0b] = xref:bsl.adoc[bsl]::xref:bsl/shared_ptr-0a.adoc[shared_ptr]::shared_ptr :relfileprefix: ../../ :mrdocs: Create a shared pointer that manages the same modifiable object (if any) as the specified `other` shared pointer to the (template parameter) type `COMPATIBLE_TYPE`, uses the same deleter as `other` to destroy the shared object, and refers to `(ELEMENT_TYPE*)other.get()`. If `COMPATIBLE_TYPE *` is not implicitly convertible to `ELEMENT_TYPE *`, then a compiler diagnostic will be emitted indicating the error. Note that if `other` is empty, then an empty shared pointer is created, which may still point to an un‐managed object if `other` were constructed through an aliasing constructor. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class COMPATIBLE_TYPE> shared_ptr(xref:bsl/shared_ptr-0a.adoc[shared_ptr<COMPATIBLE_TYPE>] const& other) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#