$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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