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 _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost