Getting completely (I mean ENTIRELY) rid off GC

Paulo Pinto via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 14 09:08:40 PDT 2014


Am 14.09.2014 16:19, schrieb po:
> ...
>
>> 6. string::c_str() (let char* botch string internals)
>
> It returns a const char* so you would have to cast const away to do that--

Which everyone does all the time, because the main reason c_str() exists 
is to interface with C style APIs, most of them taking only char* strings.


More information about the Digitalmars-d mailing list