Effective c++ 学习笔记(好的英文表达)
这本书是坚持用原版学习完的,学习c++的同时也熟悉下英文。摘抄部分可以借鉴的表达:
- at first glance, this may look innocuous.
- If you're ever tempted to inherit from a standard container or any other class with a non-virtual destructor, resist the temptation!
- Under certain circumstances, terminating a destructor, operator delete, or operator delete[] by throwing an exception can trigger undefined behavior.
- this is a place where those language zig, while c++ zags.
- Informally speaking, during base class construction, virtual functions aren't.
- This code is conceptually the same as the earlier version, but it's more insidious.
- Compilers seem to take offense at this, and they retaliate in a curious fashion.
- one of the most insidious ways this issue can arise is through inheritance.
- in practice, the two copying functions will often have similar bodies.
- your desire to avoid code duplication is laudable.
上述的这些表达,任何一个活学活用到工作中都挺好的。
网友评论