Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-02-26 11:17:36


Timmo Stange wrote:

> Let me try to explain it from a different angle: What good does this
> copyable signal handle do?

Same as all C++ handles; prevent dangling references. C++ handles are the
equivalent of Java references. Value semantics are better when they're
possible, but if the alternative is noncopyability and raw pointers, I
always prefer the handle approach. Not all C++ programmers agree. A
construct on which Java is built upon must be evil. :-)

That said, in this case I think that the hybrid approach is better than the
two other alternatives.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net