Register now or log in to join your professional community.
Direct assignment (if the pointer types are implicitly convertible, such as with derived to base, non-const to const, or any to void), or assignment after a cast. Depending on the combination of types, any of the four C++ casts (static_cast, const_cast, dynamic_cast, or reinterpret_cast) may be suitable.