Boost logo

Boost Users :

Subject: Re: [Boost-users] [Bind] Unexpected behavior when binding const char* to function
From: Igor R (boost.lists_at_[hidden])
Date: 2010-04-27 14:06:14


> I know reason behind. But use is right to think "I've bind >>abc<<.
> Binder should store it and use on f() invocation".

Note tht you do not bind c_str member function, but the *result* it
produces. The result is *invalid* after the std::string changes --
according to the Standard (IIRC).
If you wish to bind c_str and invoke it in a "lazy" manner - you can
do this as well.


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