
19 Dec
2004
19 Dec
'04
1:58 p.m.
JOAQUIN LOPEZ MU?Z wrote:
2.) When should I derive public and when private from boost::noncopyable?> Given what I said, I think that deriving from boost::noncpyable must be avoided if multiple inheritance is present and you expct your class to be allocated on the stack.
"Must be avoided" is a bit strong. One extra byte usually makes no difference for a class that will be allocated on the stack.
My fault: I meant "allocated on the heap".
But the same argument applies. One extra byte usually makes no difference. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com