Google C++ Style Guidesubclass. • Use const_cast to remove the const qualifier (see const). • Use reinterpret_cast to do unsafe conversions of pointer types to and from integer and other pointer types. Use this only if you know whenever they do not need to be modified after construction. The mutable keyword is allowed but is unsafe when used with threads, so thread safety should be carefully considered first. Where to put the0 码力 | 83 页 | 238.71 KB | 1 年前3
共 1 条
- 1













