Skip to content

Commit 1b94e28

Browse files
committed
more doc work
1 parent 59de146 commit 1b94e28

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/boost/openmethod/core.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,13 @@ class virtual_ptr<
16431643
traits::template cast<other_smart_ptr>(std::move(obj)), vp);
16441644
}
16451645

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`
16461653
template<class Other>
16471654
static auto final(Other&& obj) {
16481655
return final_virtual_ptr<Registry>(std::forward<Other>(obj));

0 commit comments

Comments
 (0)