[Boost-bugs] [Boost C++ Libraries] #4212: MSVC9.0: warning C4244 in regex_format.hpp(387) under 64-bit (x64)

Subject: [Boost-bugs] [Boost C++ Libraries] #4212: MSVC9.0: warning C4244 in regex_format.hpp(387) under 64-bit (x64)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-13 07:31:18


#4212: MSVC9.0: warning C4244 in regex_format.hpp(387) under 64-bit (x64)
--------------------------------------+-------------------------------------
 Reporter: davidjward30@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: regex
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
--------------------------------------+-------------------------------------
 boost_1_42_0\boost\regex\v4\regex_format.hpp(387) : warning C4244:
 'initializing' : conversion from '__int64' to 'int', possible loss of data

 This is a warning under x64 compilation, where sizeof(size_t) !=
 sizeof(int)

   int max_len = m_end - m_position;

 Possibly max_len should be of type size_t or probably more stricty a
 typedef like

 iterator_traits<Iterator>::difference_type


 Similar warnings in other places:
 boost_1_42_0\boost\regex\v4\regex_format.hpp(450) : warning C4267:
 'argument' : conversion from 'size_t' to 'int', possible loss of data

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