Boost logo

Boost Users :

From: Shams (shams_at_[hidden])
Date: 2007-06-03 04:35:56


Hi,

1. With most (all?) 64-bit Linux/Unix following the LP64 model:
http://www.unix.org/version2/whatsnew/lp64_wp.html

int_t<64>::least could give either a "long" or "long long" .
uint_t<64>::least could give either a "unsigned long" or "unsigned long
long".

In this case I'd prefer just "long" or "unsigned long".

2. However with M$ 64bit Windows following the ILP64 there is no other
choice but int_t<64>::least gives "long" or "long long".

However even on 64-bit Windows with Interix (SUA/SFU) the LP64 model is
is followed.

3. Now I remember someone already already come up with a patch?

Thanks
Shams

-- 
"Niels Dekker - mail address until 2007-11-30" 
<nd_mail_address_valid_until_2007-11-30_at_[hidden]> wrote in message 
news:46616268.CCC0A000_at_xs4all.nl...
>I would like to have "long long" and "unsigned long long" supported by
> boost::int_t and boost::uint_t.  E.g., on Win32, VC++, I would expect
> int_t<64>::least to get me a long long.
>
> Are there plans to add this kind of support?  Otherwise, should I submit
> my request as a ticket to svn.boost.org/trac/boost ?
>
> It looks like "long long" support can be added quite easily, as I
> already did so on my local copy of boost/integer.hpp.
>
> -- 
> Niels Dekker
> http://www.xs4all.nl/~nd/dekkerware
> Scientific programmer at LKEB, Leiden University Medical Center 

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