
21 Apr
2006
21 Apr
'06
11:16 a.m.
Peter Dimov wrote:
Markus Schöpflin wrote:
The test fails with the following message:
bind_visit_test.cpp(61): test 'vis.hash == 34' failed in function 'int main()'
It has been failing on HP/CXX only for quite some time, but now I noted it also fails on GCC 4.1.0 Linux and Tru64. Is this an issue with the test?
The test has to result in one of the following sequences:
vis( f ); vis( 3 ); vis( _1 ); vis( 4 );
or
vis( f ); vis( 3 ); vis( 4 );
so vis.hash needs to be 34 afterwards. If it isn't, the visitor isn't being called, and boost::signal automatic disconnect will probably not work.
IOW, you're 100% sure that both compilers somehow get this wrong when the test fails. Markus