
19 Jul
2006
19 Jul
'06
8:21 p.m.
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