#2767 closed Bugs (fixed)
#pragma warning pop is missing in boost/function/function_base.hpp
Reported by: | Owned by: | Douglas Gregor | |
---|---|---|---|
Milestone: | Boost 1.39.0 | Component: | function |
Version: | Boost 1.38.0 | Severity: | Problem |
Keywords: | #pragma warning | Cc: |
Description
boost/function/function_base.hpp contains #pragma warning push directive but does not contain the corresponding #pragma warning pop.
As a result, global warnings state is changed and thus warnings in user code may not be reported correctly.
#pragma warnings push/pop are Visual C++ specific pragmas that maintain a stack of warnings state. Having push and no pop means stack nesting is broken.
Fix is trivial (patchfile is attached).
Attachments (1)
Change History (3)
by , 14 years ago
Attachment: | patchfile.patch added |
---|
comment:1 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
(In [54410]) Add missing #pragma warning(pop) in Boost.Function.
Merged revisions 53694 via svnmerge from https://svn.boost.org/svn/boost/trunk
........
r53694 | danieljames | 2009-06-06 16:31:47 +0100 (Sat, 06 Jun 2009) | 1 line
Add missing #pragma warning(pop). Fixes #2767.
........
suggested fix (diff format)