We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59de146 commit 1b94e28Copy full SHA for 1b94e28
include/boost/openmethod/core.hpp
@@ -1643,6 +1643,13 @@ class virtual_ptr<
1643
traits::template cast<other_smart_ptr>(std::move(obj)), vp);
1644
}
1645
1646
+ //! Construct a `virtual_ptr` from a smart pointer to an object
1647
+ //!
1648
+ //! This function forwards to @ref final_virtual_ptr.
1649
1650
+ //! @tparam Other The type of the argument
1651
+ //! @param obj A reference to an object
1652
+ //! @return A `virtual_ptr<Class, Registry>` pointing to `obj`
1653
template<class Other>
1654
static auto final(Other&& obj) {
1655
return final_virtual_ptr<Registry>(std::forward<Other>(obj));
0 commit comments