Boost logo

Boost Users :

From: Michael Thurston (michaelt_at_[hidden])
Date: 2007-11-02 07:48:13


 [boost][date_time]

 

Hi there,

 

I have a question about the boost::posix::time_duration class. It has
accessors such as:

 

- hours()

- minutes()

 

that return a data type of long. I would have expected it to return a
datatype of boost::int64_t (or boost::int32_t) because could there be a
risk that the return value would cause an overflow on an 8 bit embedded
platform.

 

Regards,

Michael



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