Re: Lessons learned from string-fix and consequences on StringNg design

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Fri, 13 Feb 2009 11:36:49 +0100

tor 2009-02-12 klockan 17:19 +0100 skrev Kinkie:
> It would IMHO make sense to:
> 1. introduce StringNg::size_type, which should be a _signed_ 32-bit integer
> 2. introduce a static const StringNg::npos = -1 to be used in place of
> std::string::npos

Or use size_t in the API while using a smaler type in the internal
representation.

size_t is only making a mess for printf style operations, and it's
relatively easy to deal with (and have to be dealt with at a number of
other locations..)

Regards
Henrik
Received on Fri Feb 13 2009 - 10:36:59 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 13 2009 - 12:00:03 MST