
Hi there, boost::format will not swallow "%I64d". Instead, it throws a boost::io::bad_format_string exception. How can I use 64 bit integers? Thanks, Christian

On Mon, 17 Apr 2006 22:14:02 +0200, Olaf van der Spek wrote
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

Thanks, that worked. Cool Is that feature mentioned in the documentation? Greets, Christian

I think it's important to document that boost.format doesn't care for the actual size. How does it work when there is only "%d"? Just image for 128, 96 or 16 bit integers. Thanks, Christian
participants (4)
-
Christian Henning
-
Jeff Garland
-
loufoque
-
Olaf van der Spek