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 18:54:08


> Incoming book "How to code with C++0x and not commit suicide" will
> have to contain advise "When you bind, ensure that function signature
> have no pointers; otherwise you are in trouble".

c_str() shouldn't be used outside the expression it's part of. This
issue is unrelated either to bind or to C++0x. On the contrary,
c_str() is a "bridge" from C++ to old plain C.


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