Build error of “No matching constructor for initialization” when initialize share_ptr from unique_ptr
First, I read this answer to realize that why we want to convert an unique_ptr to a shared_ptr sometimes. Then, I follow the instructions of the converting on cppreference shared_ptr.