Boost logo

Boost :

From: Geurt Vos (G.Vos_at_[hidden])
Date: 2001-04-10 06:49:50


Due to the automatic conversion to const void *,
the following code is valid to BC++ 5.5. GCC 2.95.2
produces (only) a warning:

#include <boost/any_function.hpp>

int main()
{
    boost::any_function<void> f;
    delete f;
}

Should this be possible or not?

Note that although MSVC++ 6 errors out on this,
MSVC++ 7 does allow it.

Geurt


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk