Opened 10 years ago
Closed 9 years ago
#6842 closed Patches (wontfix)
[Intel C++] Compile Errors with '#include <atomic>'
Reported by: | Owned by: | Peter Dimov | |
---|---|---|---|
Milestone: | To Be Determined | Component: | smart_ptr |
Version: | Boost 1.49.0 | Severity: | Problem |
Keywords: | Cc: | raptorfactor@… |
Description
Under Intel C++ (12.1) on Windows, in C++0x mode, the following fails to compile:
#include <atomic> #include <boost/shared_ptr.hpp> int main() { }
The problem has been discovered previously: http://software.intel.com/en-us/forums/showpost.php?p=160114
However there seems to be no forthcoming fix on Intel's part.
Attached is a patch to fix this problem. It will probably require a bit of extra wrapping though (to check for Intel version and C++0x mode).
Attachments (1)
Change History (4)
by , 10 years ago
Attachment: | boost-shared_ptr-intel-fix-20120421-0447.patch added |
---|
comment:1 by , 10 years ago
Cc: | added |
---|
comment:3 by , 9 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This problem should be avoidable by #define BOOST_SP_NO_ATOMIC_ACCESS.
Note:
See TracTickets
for help on using tickets.
Fist patch. Massive hack. Needs improvement.