我想将变量a作为 method 中的默认参数传递func()。
a
func()
struct S { int a; int func(int b = a) { // do something } };
编译时显示错误。有可能以某种方式解决这个问题吗?
c++ structure
c++ ×1
structure ×1