Modify

Opened 8 years ago

Closed 8 years ago

#4212 closed Bugs (worksforme)

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

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

Description

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

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by anonymous

Milestone: Boost 1.43.0Boost 1.44.0
Resolution: worksforme
Status: newclosed

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

Please reopen if not.

John.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Maddock.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.