Ticket #4212 (closed Bugs: worksforme)

Opened 5 years ago

Last modified 5 years ago

MSVC9.0: warning C4244 in regex_format.hpp(387) under 64-bit (x64)

Reported by: davidjward30@… Owned by: johnmaddock
Milestone: Boost 1.44.0 Component: regex
Version: Boost 1.44.0 Severity: Problem
Keywords: Cc:


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


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


Change History

comment:1 Changed 5 years ago by anonymous

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone changed from Boost 1.43.0 to Boost 1.44.0

I believe this has already been addressed in Trunk - it just didn't quite make the 1.43 release.

Please reopen if not.



Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.