Quote:
Originally Posted by nofish
I guess my non-knowledge about C strings comes to light again here...
|
Please try to avoid using raw C strings in C++ code if in any way possible...Pretty much anything available in C++ will be better than that. WDL_String would be worth looking into in WDL/SWS context.
If you have other functions/classes that want raw C strings as arguments, WDL_String has the Get() method to get the raw char* C string buffer. There may sometimes however be cases where using a C++ string wrapper will not work, but most code should not be written considering those pathological cases.