Friday, August 30, 2013

FeedaMail: Comments for Sutter’s Mill

feedamail.com Comments for Sutter's Mill

Comment on GotW #7b: Minimizing Compile-Time Dependencies, Part 2 by Paul

It seems that everyone seems to ignore that class A has virtual members. Class X also has virtual members anyway (the print function), and therefore needs a *virtual* destructor. This should also solve the unique_ptr pimpl issue and allow a pimpl to reduce implementation detail dependencies (all private members can be hidden).

Additionally the private inheritance of B can be replaced by encapsulation instead (inside the pimpl)

Read More »

Comment on GotW #94 Solution: AAA Style (Almost Always Auto) by Gabor Fekete

@Ralph Tandetzky: You can also say “for (auto i = 0u; i < v.size(); ++i) {}". Notice the "u" after the "0"!

Read More »
 
Delievered to you by Feedamail.
Unsubscribe

No comments:

Post a Comment