Re: basic_string causes crash in _vsnprintf???



WXS <WXS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> [...]
> I don't really have the time to scrutinize 6-10,000+ references and correct
> them. So it seems the only quick and almost guaranteed alternative is to
> create a custom implementation of basic_string that mimics the behavior we
> want or revert back to the old stl.

This has two major drawbacks. For one, you're
stuck with broken code which onyl by accident
sort-of "works". Also, you're rather unlikely
to come up with a string class that fulfills
your requirement /and/ is as effective as the
one in the std lib.

> Still surprised MS didn't support a
> compatiblity mode for string references like they did for CString.

'std::basic_string<>' never was designed to
be usable instead of a 'const char*', so there
was no predecessor they could have tried to
stay compatible with.

> [...]


Schobi

--
SpamTrap@xxxxxx is never read
I'm Schobi at suespammers dot org

"Coming back to where you started is not the same as never leaving"
Terry Pratchett


.