Boost logo

Boost Users :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2004-11-17 09:26:32


On Nov 16, 2004, at 10:48 PM, a_hao_at_[hidden] wrote:
> I'm using win2000 pro build 5.00.2195 service pack4, Visual Studio
> 2003 version 7.1.3091, boost v1_31_0.
> And I also tested this using boost v1_32_0, also has this bug.
>
> Before crash, this assert will fail: "Assertion failed: first != last,
> file d:\boost_1_31_0\boost\last_value.hpp, line 23"

Oh, right! That is by-design, then: when you declare a non-void signal
with the default combiner, it has to get a value from somewhere to
return. When first == last, there is no such value so it asserts. If
you don't want this behavior, you can write your own combiner that gets
a result from somewhere else.

        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