Ron Natalie <> spoke thus:
> In your example, even with a char* conversion operator, you're going
> to have to do SOMETHING explicitly. The implicit conversions just
> make it more likely to screw up
I suppose so...
> I doubt that highly. What most likely happens is you invoke undefined behavior
> for passing a null char* pointer to the one of the functions in std::string that take
> a char*. Doesn't matter if you are catching std::exception or not, the behavior
> isn't defined at all.
This is pre-modern STL here, so you might not want to doubt it quite
so highly. I'm quite positive of this, as much of this
implementation's stream library simply does not work like my
references say it should (as I posted here several months ago).
> Unless you're convinced that a particular function is known to be bad, all you
> are doing is generating a whole mess of new problems by defining your own half-assed
> attempts to reproduce what has already been written.
Ron, believe me when I say that you're preaching to the choir here;
you need to talk to my boss
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.