Subject: [Boost-bugs] [Boost C++ Libraries] #5488: double constant used to initialise float member
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-19 13:32:44
#5488: double constant used to initialise float member
------------------------------------------------------+---------------------
Reporter: Rowan James <rowanj@â¦> | Owner: joaquin
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multi_index
Version: Boost 1.46.1 | Severity: Problem
Keywords: warning hashed_index implicit conversion |
------------------------------------------------------+---------------------
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
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5488> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC