|
Boost : |
From: jk_at_[hidden]
Date: 2001-04-09 23:44:59
9 Apr 2001 16:42:23 +0400 Doug Gregor wrote:
>
> any_function& operator=(const int); // assignment to zero clears target
Why such a trickery? How about assignment to 1, to 5, to 314159?
Why not just to
> void clear(); // clear out the target
> bool empty() const; // true if no target
> operator const void*() const; // evaluates true if non-empty
This operator is redundant too.
-- jk
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk