|
Boost : |
Subject: Re: [boost] [mpl] strange vector_c and integral_c construction
From: Maxim Yanchenko (maximyanchenko_at_[hidden])
Date: 2009-08-12 04:47:30
Hi Dmitry,
> > I'm using GCC 3.4.6, on Linux-64, compiling 32-bit binary (so int and long
are
> > of same size, and boost::int64_t is bigger than long).
> gcc-4.3.3 and 4.4.0 compile this example fine.
For gcc 3.4.6, it compiles fine too when I compile 64-bit binary, but fails on 32
.
This problem involves three types: int, long, and int64_t (long is in vector_c
definition). Of course, if long and int64_t are same, the problem won't appear.
For my system, the sizeofs of the types are:
32bit: int = long < int64_t (fail)
64bit: int < long = int64_t (ok)
What about the system you've tried?
Thanks,
Maxim
(to reply in private, please use FirstName.LastName at gmail.com)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk