可变常 问答列表

const_cast与可变和未定义的行为

作者:asimes 提问时间:11/16/2023

编辑:我在这里编辑了代码以不使用指针,因为有太多不相关的评论 #include <iostream> struct Foo { Foo(const int a) : total(a) {} ...


共1条 当前第1页