|
Boost Users : |
Subject: Re: [Boost-users] [bind] counterintuitive behavior with vector and auto_ptr
From: Emil Dotchevski (emil_at_[hidden])
Date: 2010-06-12 02:03:34
On Fri, Jun 11, 2010 at 10:41 PM, Christian Henning <chhenning_at_[hidden]> wrote:
> // this doesn't fail
> for_each( v.begin(), v.end(), boost::bind( &A::foo, _1 ));
Could it be that A::foo is called with null this, but since it doesn't
use this it doesn't crash?
Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode
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