Mark Allums wrote:
(And is also an example of something that is wrong with the C++ standard library, when you need the c_str() member of string so often to get any real useful work done. Kind of defeats the purpose of having string in the first place.)
Yes, that c_str() is a nuisance many times. I remember a few years back when older C++ code refused to compile with a newer gcc version (there are a major version change in gcc back then) and I had to manually put that .c_str() at many places in a source that I was using.
The totally unhelpful, but trying to be encouraging, Mark Allums