Re: [Boost-bugs] [Boost C++ Libraries] #1069: _InterlockedExchange, _InterlockedExchangeAdd have wrong signature

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1069: _InterlockedExchange, _InterlockedExchangeAdd have wrong signature
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-07-15 16:06:23


#1069: _InterlockedExchange, _InterlockedExchangeAdd have wrong signature
-----------------------------------------------------+----------------------
  Reporter: Braden McDaniel <braden_at_[hidden]> | Owner: pdimov
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: smart_ptr
   Version: release 1.34.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------------+----------------------
Comment (by pdimov):

 The Microsoft documentation is wrong in this case. If we change the code
 to be wrong as well, the signatures will no longer match the ones in
 <windows.h>. The documentation for !InterlockedExchange

 http://msdn2.microsoft.com/en-us/library/ms683590.aspx

 correctly specifies the signature as taking LONG volatile*. BTW, you can't
 declare a function parameter as long * volatile, the volatile is ignored.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1069#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC