Ticket #2779 (closed Bugs: fixed)

Opened 8 years ago

Last modified 8 years ago

iostreams/close.hpp doesn't restore warning level

Reported by: Vasili Galka <vvv444@…> Owned by: 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]


Change History

comment:1 Changed 8 years ago by vladimir_prus

  • Status changed from new to closed
  • Resolution set to fixed

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

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


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.