const int&类的引用可以绑定一个非const int类对象,但是const int*&类的指针为什么不能绑定一个非const int*的对象?c++小白求大佬解答
强制转换一下是可以的。引用类型对类型有强校验