Resolved implicit conversion of nullptr to boost::shared_ptr not accepted by GCC