$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.