$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: WangYun (a_hao_at_[hidden])
Date: 2004-11-16 10:02:50
Hi,
I tried the signals, the code below will crash
#include <boost/signal.hpp>
int _tmain(int argc, _TCHAR* argv[])
{
boost::signal<int(int)> _sig;
_sig(10);
return 0;
}
but code below works well
#include <boost/signal.hpp>
int _tmain(int argc, _TCHAR* argv[])
{
boost::signal<void(int)> _sig;
_sig(10);
return 0;
}
The only difference is one has return value, the other doesn't, is this a bug or by design?
Thanks,
Wang Yun