
10 Apr
2005
10 Apr
'05
1:37 p.m.
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.