Boost logo

Boost :

From: Yariv Tal (yariv_tal2003_at_[hidden])
Date: 2005-04-10 08:37:12


On Visual Studio.NET / VC7.1 the following code:

#include <boost/mpl/long.hpp>
#include <climits>
boost::mpl::long_<LONG_MAX> lll;

Gives the following warning:
...\boost_1_32_0\boost\mpl\aux_\integral_wrapper.hpp(72) : warning C4307:
'+' : integral constant overflow
...\main.cpp(39) : see reference to class template instantiation
'boost::mpl::long_<N>' being compiled
with
[
N=2147483647
]

.
.
.
(warning goes on and on...)

Is this a known issue?
When would this lead to errornous program behaviour? (maybe never?)
Are there plans to fix it? (i.e. by specializng long<LONG_MAX> to not use
the '+')

Yariv Tal.


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