Boost logo

Boost Users :

Subject: [Boost-users] error C2440: 'reinterpret_cast' : InterlockedCompareExchange from detail\interlocked.hpp
From: Joseph Marks (jmarks_at_[hidden])
Date: 2008-11-06 12:18:02


Apparently, the signature of this function has changed.

 

When we used it under Visual Studio 6.0 it compiled correctly however,
the following happens in MS VS 2008:

 

The following error appears

error C2664: 'InterlockedCompareExchange' : cannot convert parameter 2
from 'PVOID' to 'LONG'

 

If I just do a cast, I get:

error C2440: 'reinterpret_cast' : cannot convert from 'DWORD' to 'long'.

 

Does anyone have any suggestions?

 

Thanks in advance.

 

Joseph

 

 

(-:

 

 

The preceding e-mail message (including any attachments) contains information that may be confidential, or constitute non-public information.
It is intended only for the designated recipient. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail.
If you have received this e-mail by mistake, please notify the sender immediately by replying to this message and delete this e-mail from your system.
Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net