Correct check for get_pointer(std::shared_ptr).