#5488 closed Bugs (fixed)
double constant used to initialise float member
Reported by: | Owned by: | Joaquín M López Muñoz | |
---|---|---|---|
Milestone: | To Be Determined | Component: | multi_index |
Version: | Boost 1.46.1 | Severity: | Problem |
Keywords: | warning hashed_index implicit conversion | Cc: |
Description
In: multi_index/hashed_index.hpp: ~608
Class member 'mlf' is defined as a float, but the unqualified double constant 1.0 is used to initialise it.
This causes the following warning for us in code using boost::flyweights on GCC 4.2 (APPLE) with -Wall -Wextra
warning: implicit conversion shortens 64-bit value into a 32-bit value
Attachments (1)
Note:
See TracTickets
for help on using tickets.
patch (fix)