Boost logo

Boost :

Subject: Re: [boost] Boost.Atomic on Windows, patch
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2012-08-03 13:58:04


[Sergey Cheban]
> Why is neccessary to include the windows headers at all? Intrin.h seems
> to be enough: it declares _InterlockedCompareExchange and some other
> useful intrinics, and it does not use the winapi-related stuff.

FYI, VC11's <atomic> includes <intrin.h>. Works fine for us.

(Note, however, that it was very problematic to get the STL to drag in <intrin.h> in VC9. Those bugs were fixed in VC10. Although we have the luxury of targeting a single version, you might care.)

Stephan T. Lavavej
Visual C++ Libraries Developer


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk