Item 9: Never call virtual functions during construction or destruction(Effective C++)
2009-12-27 09:43
381 查看
Don't call virtual functions during construction or
destruction, because such calls will never go to a more derived class than that
of the currently executing constructor or destructor.
destruction, because such calls will never go to a more derived class than that
of the currently executing constructor or destructor.
相关文章推荐
- Item9: Never call virtual functions during construction or destruction
- Effective C++ Item 9 Never call virtual functions during constrution or destruction
- 条款9:绝不在构造和析构过程中调用virtual函数(Never call virtual functions during construction or destruction)
- effective c++ 9: Never call virtual functions during construction or destruction
- 【条款9】Never call virtual functions during construction or destruction
- 条款09:绝不在构造和析构过程中调用virtual函数(Never call virtual functions during construction or destruction.)
- Never Call Virtual Functions during Constructio...
- Item 35: Consider alternatives to virtual functions(Effective C++)
- Item 7:Never overload &&, ||, or ,.(More Effective C++)
- [翻译] Effective C++, 3rd Edition, Item 9: 绝不要在 construction(构造)或 destruction(析构)期间调用 virtual functions(虚拟函数)
- Effective C# Item 20: Distinguish Between Implementing Interfaces and Overriding Virtual Functions
- Effective C++ Item 35 Consider alternatives to virtual functions
- [翻译] Effective C++, 3rd Edition, Item 7: 在 polymorphic base classes(多态基类)中将 destructors(析构函数)声明为 virtual(虚拟)
- Item 12:Understand how throwing an exception differs from passing a parameter or calling a virtual function.
- effective c++ 条款9 do not call virtual function in constructor or deconstructor
- Effective Java Item3:Enforce the singleton property with a private constructor or an enum type
- Item 36: Never redefine an inherited non-virtual function(Effective C++)
- Item 6: Explicitly disallow the use of compiler-generated functions you do not want(Effective C++)
- More Effective C++ 31. Making functions virtual with respect to more than one object
- Item 9: 绝不要在 construction(构造)或 destruction(析构)期间调用 virtual functions(虚拟函数)