const_cast使用出错问题直接上图了 c++ const_cast [解决办法]const_cast 只接受指针,引用,pointer-to-member 类型作为目标类型。比如这样 const_cast<Test&>(t);[解决办法]
为什么只接受指针类型呢?求答疑