Opened 7 years ago

Closed 7 years ago

#4212 closed Bugs (worksforme)

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

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by anonymous

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

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

Please reopen if not.


Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain johnmaddock.
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.