boost::openmethod::weak_virtual_ptr::operator=
Assign from a std::shared_ptr to a derived class
Synopsis
Declared in <boost/openmethod/interop/std_weak_ptr.hpp>
template<class Other>
requires IsPolymorphic<Other, Registry> && std::is_assignable_v<
std::weak_ptr<Class>&, const std::shared_ptr<Other>&>
weak_virtual_ptr&
operator=(std::shared_ptr<Other> const& other);
Description
Assign the std::weak_ptr from other. Set the v‐table pointer according to the dynamic type of *other.
Requirements
-
Othermust be a polymorphic class, according to therttipolicy ofRegistry. -
std::weak_ptr<Class>must be assignable fromconst std::shared_ptr<Other>&.
Parameters
Name |
Description |
other |
A |
Created with MrDocs