Opened 9 years ago

Closed 8 years ago

#2779 closed Bugs (fixed)

iostreams/close.hpp doesn't restore warning level

Reported by: Vasili Galka <vvv444@…> Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: iostreams
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:


"close.hpp" pushes the warning level twice. At line 33 and line 215. However, it is poped only once at line 258. This results in unrestored warning level.

As far as I understand there is no need for the "disable_warnings.hpp" include on line 215 because it's already done at line 33. This line can be safely removed to solve the problem.

Surprisingly, this bug exists ever since this file was created on May 2005.

[All the line numbers are for official 1.38.0 release]

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by Vladimir Prus

Resolution: fixed
Status: newclosed

(In [53426]) Do no disable warnings twice (while restoring only once).

Fixes #2779. Thanks to Vasili Galka for the bug report.

Modify Ticket

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