Re: Please comment on my integer to string code.
BobR wrote:
[color=blue]
>
> // > str += charTable[i % base];
> str += charTable.at( i % base );
>[/color]
The data has already been validated. This check adds nothing. The
original version, with the char array and direct access, had far less
overhead and was just as robust.
--
Pete Becker
Roundhouse Consulting, Ltd.
BobR wrote:
[color=blue]
>
> // > str += charTable[i % base];
> str += charTable.at( i % base );
>[/color]
The data has already been validated. This check adds nothing. The
original version, with the char array and direct access, had far less
overhead and was just as robust.
--
Pete Becker
Roundhouse Consulting, Ltd.
Comment