Opened 15 years ago

Closed 15 years ago

#1381 closed Bugs (fixed)

Mismatch BOOST_MSVC version check for #pragma warning(pop) in regex/v4/regex_token_iterator.hpp

Reported by: m.champlon@… Owned by: John Maddock
Milestone: To Be Determined Component: regex
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The check to test whether to #pragma warning(push) or not at the beginning of the file is : #if BOOST_WORKAROUND(BOOST_MSVC, > 1300) # pragma warning(push) # pragma warning(disable:4700) #endif

However the test at the end of the file concerning #pragma warning(pop) is : #if BOOST_WORKAROUND(BOOST_MSVC, == 1310) # pragma warning(pop) #endif

On platforms > 1310 (for instance vc80 is 1400) this yields to a pragma warning(push) never matched by its corresponding pragma warning(pop).

Attachments (1)

regex_token_iterator.hpp.patch (686 bytes ) - added by m.champlon@… 15 years ago.

Download all attachments as: .zip

Change History (2)

by m.champlon@…, 15 years ago

comment:1 by John Maddock, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in SVN Trunk.

Targeted for Boost-1.35: thanks for the report.

Note: See TracTickets for help on using tickets.