From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2007-11-12 08:14:15
Ormond, Randy wrote:
> Thanks for the quick reply.
> But I don't see the recursion. Is MyClass::f() somehow the same as
> MyClass::SomeFunc() ?
> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Jeff Flinn
> Sent: Friday, November 09, 2007 3:51 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] [bind] segfault
> Ormond, Randy wrote:
>> I hope someone can point me in a new direction for tracking down a
>> Code that has been running fine for months started seg faulting after
>> directory reorganization.
>> Valgrind says "Use of uninitialized value of size 4".
>> A simplified version is below.
>> void MyClass::
>> // void f() is a member function of MyClass
>> typedef boost::function<void ()> VoidFunc;
>> VoidFunc vf = boost::bind(&MyClass::f, this);
>> f(); // fine
>> this->f(); // fine;
>> vf(); // segfaults
> Infinite Recursion? At least for this sample code?
> Jeff Flinn
Oops, reader error. :(
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk