Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2002-08-30 19:40:28


> Sorry, I wasn't very clear with my question. What I require is a way to do
> the following
>
> boost::int_t<60> val;

Yep, that wasn't clear ;-(
 
> This however will be in a template and so the literal 60 will be replaced by
> some template parameter not known until compile time. When I compile this I
> currently get compile errors as the int_t template does not support long
> long. If I replace it with
>
> boost::int64_t<60> val;
>
> I get compile errors as int64_t is a typedef and not a template.

Right, sorry your question confused me...I thought you were talking
about the cstdint part of the library. Looks like an extension is
required to do what you want. It will be a tricky extension b/c
'long long' is not the name for the 64 bit type on many compilers
(MSVC and Borland use __int64).

Jeff


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