Boost logo

Boost Users :

Subject: Re: [Boost-users] /usr/include/boost/serialization/vector.hpp:126: error:
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-02 17:44:36


AMDG

Patrick McEvoy wrote:
> Activating #define BOOST_NO_INTRINSIC_INT64_T seems to have fixed the
> problem. Any idea why the if statement failed?

I'm guessing that
a) boost::uint64_t is the same as unsigned long
b) 0xffffffff == -1
c) Therefore (unsigned long)-1 == ~0ul == ULONG_MAX
d) Thus, the whole expression evaluates to false.

In Christ,
Steven Watanabe


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