/root/tmp/opm-core-release-2015.10-final/opm/core/utility/share_obj.hpp

Share pointer of a local object.

Use this wrapper when an interface needs a shared_ptr, but you want to pass an object that has local storage (and you know that the shared_ptr client doesn't need it outside of the scope).

Foo obj;
std::shared_ptr <Foo> ptr = share_obj (obj);