_DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY Macro Home
This page is specific to:.NET Framework Version:3.54.0
_DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY Macro

Prevents declarations of interlocked intrinsics in <memory>.

_DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY
Remarks

The header <memory> uses interlocked intrinsics such as _InterlockedIncrement Intrinsic Functions to implement thread-safety in shared_ptr Class. Unfortunately, some other header files declare the interlocked intrinsics in a way that is incompatible with the declarations in <memory>.

If you have trouble compiling your program because of conflicting definitions of interlocked intrinsics, define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY, which prevents <memory> from declaring those functions.

Requirements

Header: <memory>

Namespace: std::tr1

See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View