Search This Blog

Monday, May 16, 2011

ExceptionalC++ Fun: 15. Exception Safe code. private inheritance or composition

they both mean "is implemented in terms of":
things to remember:

only use private inheritance over composition if:

  • access the class's protected member
  • override a virtual function
  • the object needs to be constructed before other base subobjects. (??what?)

No comments: