$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-11-09 11:17:54
I finally got it this time. The code is now in CVS to enable the syntax:
boost::function<int (int, int)> f(0);
// ...
if (f != 0) {
// ...
f = 0;
}
'f = 0' is an alias for f.clear().
The implementation is based on enable_if (thanks Jaakko!). I'm currently
probing the compiler set that supports enable_if properly. Any known
workarounds? GCC 3.2 is failing so far...
Doug