#include struct A{}; int main(){ std::shared_ptr p; A* a = nullptr; p = a; }