Boost logo

Boost :

From: Martin Wille (mw8329_at_[hidden])
Date: 2005-10-13 01:59:36


Thomas Andersen wrote:
> I have tried to get wave to preprocess the boost headers. However I get an
> error in cstdint.hpp line 246
>
> # if ULONG_MAX == 18446744073709551615 // 2**64 - 1
>
> error: ill formed integer literal or integer constant too large:
> 18446744073709551615
>
> Have anybody else encountered this problem, and found a way around it?

On 32 bit system, an unsigned long can't be == 18446744073709551615.
Even on a 64 bit system, the literal 18446744073709551615 would be
signed. The code probably should read

# if ULONG_MAX == 18446744073709551615ULL

on systems that allow for 'long long'.

Regards,
m
Send instant messages to your online friends http://au.messenger.yahoo.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk