We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
错误位置:
错误原因: Mutable是用来修饰类的成员变量的,而不是修饰成员函数的。
来源和代码验证: 来源-C++ Primer 245页
代码验证-加在函数的参数列表后大括号前面会报错
我认为划红线的地方应该改为: 那么这个成员变量应该被mutable来修饰,mutable关键字在成员变量声明的时候加在最前方。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
错误位置:
错误原因:
Mutable是用来修饰类的成员变量的,而不是修饰成员函数的。
来源和代码验证:
来源-C++ Primer 245页
代码验证-加在函数的参数列表后大括号前面会报错
我认为划红线的地方应该改为:
那么这个成员变量应该被mutable来修饰,mutable关键字在成员变量声明的时候加在最前方。
The text was updated successfully, but these errors were encountered: