Opened 11 years ago

Closed 10 years ago

#5762 closed Bugs (fixed)

compilation warning: C4244: '=' : conversion from 'boost::uintmax_t' to 'digit_t', possible loss of data D:\dvm\trunk\buildenv\windows\vc-8.0\32\boost_1_47_0\boost\random\detail\large_arithmetic.hpp {99,100}

Reported by: pluto@… Owned by: No-Maintainer
Milestone: Component: random
Version: Boost 1.50.0 Severity: Problem
Keywords: Cc:

Description

msvc-2005 warns about possible data loss but in this case assignments look correct, so please add an explicit cast or disable warning C4244 in disable_warnings.hpp.

Change History (5)

comment:1 by Steven Watanabe, 11 years ago

Component: Nonerandom
Owner: set to No-Maintainer

comment:2 by alexanderlobov@…, 11 years ago

Milestone: To Be DeterminedBoost 1.50.0
Version: Boost 1.47.0Boost 1.48.0

I also have this problem with boost 1.48 and compiler msvc-2005

comment:3 by Alexander Lobov <alexanderlobov@…>, 11 years ago

Program that reproduces the problem

#include <boost/random/mersenne_twister.hpp>

int main() {
  return 0;
}

There is no the problem with g++ (GCC) 4.5.3 compiler.

comment:4 by s.seifried@…, 10 years ago

Milestone: Boost 1.50.0
Version: Boost 1.48.0Boost 1.50.0

still exisiting in boost 1.50.0, any change that this gets fixed in 1.51.0 or 1.52.0?

comment:5 by Steven Watanabe, 10 years ago

Resolution: fixed
Status: newclosed

(In [82940]) Add explicit casts to avoid warnings on vc8. Fixes #5762.

Note: See TracTickets for help on using tickets.