|
Boost Users : |
Subject: Re: [Boost-users] integer constant too large for 'long' type
From: David Kaplan (davkaplan_at_[hidden])
Date: 2010-03-11 03:35:52
On 11 March 2010 10:23, David Kaplan <davkaplan_at_[hidden]> wrote:
> I'm having problems compiling this line of code on a 32bit system:
>
> boost::uniform_int<uint64_t> r(0,0xffffffffffffffff);
>
> compile-time error: "integer constant too large for 'long' type"
>
Ahh integer constant - I needed LL of course 0xffffffffffffffffLL. I'm
getting to used to coding on my 64bit box when ints are of size 8! :)
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