Boost logo

Boost Users :

From: Sean Huang (huangsean_at_[hidden])
Date: 2006-07-19 16:21:34


I was surprised that the following code compiled:

#include <boost/function.hpp>

int main(int argc, char argv[])
{
    typedef boost::function< void ( void ) > MyFunction;
    MyFunction test1 = char();
    MyFunction test2 = 0;
    return 0;
}

Is there any reason why boost::function allows such conversions?
Thanks,
Sean


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net