Boost logo

Boost Users :

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


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