Boost logo

Boost Users :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2004-11-16 20:11:49


On Nov 16, 2004, at 10:02 AM, WangYun wrote:

> 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?

Sounds like a bug... could you give us more information? Compiler,
platform, Boost version, etc.

        Doug


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