Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2006-04-17 22:44:41


On Mon, 17 Apr 2006 22:14:02 +0200, Olaf van der Spek wrote
> On 4/17/06, Christian Henning <chhenning_at_[hidden]> wrote:
> > Last time I checked, boost has one.
>
> He probably means that long long is not part of the (official)
> standard, although most compilers do support long long.

Well not really. Some compilers call it long long -- some call it other
names. That's why there is boost::int64_t (and friends) which mirrors the C
types from stdint.h. I can assure you that it works on every platform where
date-time compiles b/c I use it for the internal representations and it works
just fine.

The documentation of this is a bit hard to see, but if you read about
exact-width integers at:

http://www.boost.org/libs/integer/cstdint.htm

you'll find it. So the practical effect is that it's there if you want it.

Also, I believe the library working group is considering adding these C types
for TR2 -- so eventually it will be official...

Jeff


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