Re: Garbage collection in C++
On Nov 21, 12:28 am, Sam <s...@email-scan.com> wrote:
James Kanze writes:
On Nov 20, 1:57 am, Sam <s...@email-scan.com> wrote:
Jeff Schwab writes:
The reason std::string was added to the standard was because
without it, everyone did have to reinvent the wheel. Still,
you can't criticize people for not using something that
didn't exist when they wrote the code.
Well, now that the code is written, there's no need to keep
this extra baggage round. Bite the bullet, and rewrite QString
into std::string (or std::wstring).
And break all of the existing user code? That would be very
irresponsible. (And of course, std::wstring doesn't support
Unicode.)
It's not that hard. I also once wrote a small string class, as
well as a simple set of container classes, before std::string,
and STL, was widely available. Guess what? A few years ago, I
went ahead and converted all the old codebase to std::string,
and STL containers.
Fine, if you only have a small code base and your time is free.
It's not the sort of thing a responsible company would impose on
its customers.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34