Boost logo

Boost Users :

From: Pavol Droba (droba_at_[hidden])
Date: 2005-12-01 15:15:43


On Thu, Dec 01, 2005 at 08:06:14PM +0200, Yuval Ronen wrote:
> Pavol Droba wrote:
> > This seems like a goot idea. I like the interface with int parameter.
> > I'll add it to my todo list.
>
> First of all, thanks.
>
> One problem with the negative numbers I just thought of: zero. A
> positive zero means return an empty string. A negative zero means return
> the whole input string. But since there's no difference between positive
> zero and negative zero...

Well, we just have to decide and document it. I think, that the safer
approach would be to treat 0 as positive number. If for nothing else,
it would not break current definition.

Regards,
Pavol


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net