[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: RES: C++ Typecast - so far newbie question
- From: Rici Lake <lua@...>
- Date: Mon, 2 Jul 2007 15:58:26 -0500
On 2-Jul-07, at 2:40 PM, SosCpdTerra wrote:
Did someone know a better way to typecast a const char * (that is about
lua_tostring(L, n)) into a char * then vector or c_str()? I'm fighting
with
that...
Strings returned by lua_tostring *must not be modified*.
So don't cast them to char* or evil things will happen.