17 Nov
2004
17 Nov
'04
2:58 p.m.
On Nov 16, 2004, at 10:48 PM, a_hao@21cn.com 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
Ok, I see, thanks Doug and Nat.