Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#5488 closed Bugs (fixed)

double constant used to initialise float member

Reported by: Rowan James <rowanj@…> 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)

boost-1_46_1-hashed_index.patch (430 bytes ) - added by Rowan James <rowanj@…> 12 years ago.
patch (fix)

Download all attachments as: .zip

Change History (3)

by Rowan James <rowanj@…>, 12 years ago

patch (fix)

comment:1 by Joaquín M López Muñoz, 11 years ago

Resolution: fixed
Status: newclosed

(In [71770]) fixed #5488

comment:2 by Rowan James <rowanj@…>, 11 years ago

Thank you.

Note: See TracTickets for help on using tickets.