12.7

Bo Qian's YouTube Channel

Advanced C++

1. Logic Constness and Bitwise Constness

  What is Logic Constness and Bitwise Constness

2. Compliler Generated Functions

  When is the compiler not able to generate default constructors?

3. Virtual Destructor and Smart Destructor

  How can we invoke the derived class's destructor if the base class's destructor is not virtual?

4. Exceptions in Destructors

  What do we do to prevent throwing exceptions from destructor?

5. Virtual function in constructor or destructor

  Why should we avoid calling virtual functions in constructor and destructor?

6. Assignment to self in assignment operator

7. Resource acuisition is initialization

  Don't combine storing objects in shared pointer with other statements.

8. Static Initialization Fiasco

9. Resource Managing class

10. Virtual constructor - Clone() function

  What is co-variant in c++

11. Inheritance - Public, Protected and Private

猜你喜欢

转载自www.cnblogs.com/lefthook/p/10085731.html
今日推荐