本文介绍了逻辑和物理常数之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这两个术语之间有什么区别,为什么我需要 mutable
?
What is the difference between these two terms, and why do I need mutable
?
推荐答案
Scott Meyers,,第3项:
Scott Meyers, Effective C++, Item 3:
尽可能使用 const
示例)。它难以写得比Scott更好!
has an excellent discussion (with examples) on this topic. Its hard to write better than Scott!
请注意,physical-constness也被称为bitwise-constness。
Note also that physical-constness is also known as bitwise-constness.
这篇关于逻辑和物理常数之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!