24 #ifndef LSST_UTILS_PYTHON_PYSHAREDPTR_H 
   25 #define LSST_UTILS_PYTHON_PYSHAREDPTR_H 
   27 #include "pybind11/pybind11.h" 
   62             PyObject* pyObj = pybind11::cast(
ptr).ptr();
 
   66                 if (obj != 
nullptr) Py_DECREF(obj);
 
   81     T* 
get() const noexcept { 
return _impl.get(); }