"solid" <[EMAIL PROTECTED]> writes: > Thanks, but I don't see any side-effects in my program...
This copy constructor A(const A& a) { b_ = !a.b_; } can be called humorous at best. Since the compiler is entitled to optimize away its invokation in certain situations, there's now way to predict whether you deal with an original or a copy of it (with the value of b_ negated) [leaving open the question whether the terms "original" and "copy" should be used here]. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus