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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at