$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.