Re: Access Violation Problem
"Jorgen Grahn" <grahn+nntp@snipabacken.se>
basic_string? Forget it.
"Forget it?" Why? It's the standard string type in C++.
"standard" is not a synonym for "good". I believe there's a wide consensus
that std::string is an abomination with the interface it has. And in thoese
100+ members it still can't deal with the most basic use cases.
From the interface you can hardly tell what it was designed for, mostly
resembles a half-done vector. tuned for iterator usage, that is hardly done
ever. Actual string-like operations NOT really in mind.
Not to mention accidents like it was supposedly designed to use COW
strategy, but due to broken accessor interface that had to be forbidden
implementation for thread-unsafety reasons. Annonuced like a year after the
standard published.
It's quite a shame, by '98 we had a ton of actually useful, used, GOOD
string classes, possibly with a decade+ of practical use. The
standardisation would suppose to not invent speculative stuff, rather pick
what is good from actual use, and put it in formal terms. I did not happen
for std::string (and many other parts of the standard lib.)