|
Boost Users : |
Subject: Re: [Boost-users] [bind] and [function] : question on binding member function
From: Igor R (boost.lists_at_[hidden])
Date: 2009-09-08 07:47:56
> can someone explain to me why the following code crashes at the third
> call to "a.call_func" when "str" is dereferenced? Should'nt it crash when "this" is dereferenced?
IIRC, it's undefined behavior, so it shouldn't anything. But in
practice, I guess the compiler just ommits &* in "&*this", so there's
no reason for 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