Boost logo

Boost Users :

From: Torrey Pines (n.torrey.pines_at_[hidden])
Date: 2007-02-27 21:23:14


Hi

With the current implementation, unsigned variables accept negative
values, that get silently cast.

E.g. on my platform, if "--length" expects size_t, --length -32
assigns it a value 4294967264 without warnings or errors. This
behavior surprised me, and I'm using a workaround (parsing an int, and
checking its range manually).

However, is this an intended feature of the library?

Thanks


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