[Boost-bugs] [Boost C++ Libraries] #3883: "size_t to unsigned int" warning x64 MSVC 2008

Subject: [Boost-bugs] [Boost C++ Libraries] #3883: "size_t to unsigned int" warning x64 MSVC 2008
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-31 05:54:08


#3883: "size_t to unsigned int" warning x64 MSVC 2008
--------------------------------------------------+-------------------------
 Reporter: Ryan Drake <ryan.drake.08@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: thread
  Version: Boost 1.41.0 | Severity: Cosmetic
 Keywords: x64 MSVC C4267 |
--------------------------------------------------+-------------------------
 Kind of a nit-pick and probably benign, but I thought I'd report it: When
 compiling files using boost/thread 1.41 on MS Visual Studio 2008 using the
 "x64" target, the compiler will repeatedly warn:

 boost/thread/future.hpp(411) : warning C4267: 'initializing' : conversion
 from 'size_t' to 'unsigned int', possible loss of data

 Looks like it's unchanged in the latest svn, too. I imagine the fix would
 be to simply make the type of the "i" variable "size_t".

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3883>
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:02 UTC