Opened 14 years ago
Closed 13 years ago
#2779 closed Bugs (fixed)
iostreams/close.hpp doesn't restore warning level
Reported by: | Owned by: | Jonathan Turkanis | |
---|---|---|---|
Milestone: | To Be Determined | Component: | iostreams |
Version: | Boost 1.38.0 | Severity: | Problem |
Keywords: | Cc: |
Description
"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]
Note:
See TracTickets
for help on using tickets.
(In [53426]) Do no disable warnings twice (while restoring only once).
Fixes #2779. Thanks to Vasili Galka for the bug report.