Opened 10 years ago

Closed 9 years ago

#6842 closed Patches (wontfix)

[Intel C++] Compile Errors with '#include <atomic>'

Reported by: raptorfactor@… 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)

boost-shared_ptr-intel-fix-20120421-0447.patch (1.7 KB ) - added by Joshua Boyce <raptorfactor@…> 10 years ago.
Fist patch. Massive hack. Needs improvement.

Download all attachments as: .zip

Change History (4)

by Joshua Boyce <raptorfactor@…>, 10 years ago

Fist patch. Massive hack. Needs improvement.

comment:1 by Joshua Boyce <raptorfactor@…>, 10 years ago

Cc: raptorfactor@… added

comment:2 by viboes, 10 years ago

See #6843.

Committed revision [83903] including new files.

comment:3 by Peter Dimov, 9 years ago

Resolution: wontfix
Status: newclosed

This problem should be avoidable by #define BOOST_SP_NO_ATOMIC_ACCESS.

Note: See TracTickets for help on using tickets.