Opened 12 years ago
Closed 12 years ago
#5135 closed Bugs (fixed)
Syntax error, if boost/thread.hpp is included before boost/icl/...
Reported by: | Owned by: | Joachim Faulhaber | |
---|---|---|---|
Milestone: | Boost 1.46.0 | Component: | ICL |
Version: | Boost Release Branch | Severity: | Problem |
Keywords: | syntax error, macro unexpected include dependency | Cc: |
Description
If <boost/thread.hpp> is included before code that uses the BOOST_STATIC_CONSTANT Macro inside certain templates, it influences compilation: Code that has compiled well, produces a syntax error C2059 under msvc-9/10. This can be fixed by enclosing certain subexpressions in parentheses. The problem does not occur for gcc compilers.
Although the bug can be fixed inserting paretheses into code from Boost.Icl it would be much better to fix the cause of the bug inside code included in <boost/thread.hpp>.
Attachments (1)
Change History (3)
by , 12 years ago
Attachment: | fix_include_after_thread.cpp added |
---|
comment:1 by , 12 years ago
The bug has been fixed on the trunk. 2 Tests are added:
- Test "fix_include_after_thread" provides a minimal example of the bug and its fix.
- Test "fix_icl_after_thread" checks if the bug is fixed for icl production code.
The fix can now be merged into the release branch as soon as permission is given by the release managers.
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Minimal code to reproduce the error