Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-07 07:38:48


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?


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