[gameprogrammer] Re: std::string alternative
- From: "Dave Slutzkin" <daveslutzkin@xxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Mon, 21 May 2007 10:21:54 +1000
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
- Follow-Ups:
- [gameprogrammer] Re: std::string alternative
- From: Kevin Jenkins
- References:
- [gameprogrammer] std::string alternative
- From: Kevin Jenkins
Other related posts:
- » [gameprogrammer] std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- [gameprogrammer] Re: std::string alternative
- From: Kevin Jenkins
- [gameprogrammer] std::string alternative
- From: Kevin Jenkins