[gameprogrammer] Re: std::string alternative

On Fri, 18 May 2007 23:55:52 -0700, "Kevin Jenkins"
<gameprogrammer@xxxxxxxxxx> said:
> I'm looking for an alternative to std::string that doesn't use C++ 
> exceptions.

No specific answer here, but I'm interested to know why?

The only exceptions I can see used in std::string are length_error and
out_of_range, in the obvious cases.  out_of_range is triggered by
illegal arguments and length_error is triggered by running out of
numbers in the char array - in my implementation that's INT_MAX - 1
which seems like a lot.  Both of these would seem fairly easy to avoid.

Have I missed something?

Dave.
-- 
  Dave Slutzkin
  Melbourne, Australia
  daveslutzkin@xxxxxxxxxxx


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: