
7 Apr
2008
7 Apr
'08
11:38 a.m.
Sebastian Weber:
Hello,
I'm using boost::bind to bind some member function of class two arguments, making it a nullary function call. If I compile things with any optimizations, then the resulting code causes seg-faults. Without optimizations, everything is fine. Any ideas? Some possible workaround? BTW, boost::lambda::bind results in the same behavior.
My versions: gcc 4.1.3 on ubuntu gutsy, boost 1.35.0
Can you please post the code? Does bind_test.cpp (in libs/bind/test) work when compiled with optimizations, or does it segfault too? Can you post a backtrace of the crash?