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: | 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 , 11 years ago
| Component: | None → random |
|---|---|
| Owner: | set to |
comment:2 by , 11 years ago
| Milestone: | To Be Determined → Boost 1.50.0 |
|---|---|
| Version: | Boost 1.47.0 → Boost 1.48.0 |
comment:3 by , 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 , 10 years ago
| Milestone: | Boost 1.50.0 |
|---|---|
| Version: | Boost 1.48.0 → Boost 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 , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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