shared_ptr const problem