Comments (6)
I don't have clang to test. @pdimov, would you like to take a look?
from winapi.
The smart_ptr-specific version of interlocked.hpp
is at https://github.com/boostorg/smart_ptr/blob/develop/include/boost/smart_ptr/detail/sp_interlocked.hpp.
I don't remember all the intricacies of this - it's a pain of getting it to work on all the various configurations, each with its own quirks - so the best course of action is probably to just copy it over (removing the SP_
accordingly.)
Regarding use of intrin.h
specifically, I see that the sp
version would choose to use it when BOOST_MSVC >= 1600
, which would be the case under Clang.
from winapi.
BOOST_MSVC
is supposed to be only defined for genuine MSVC. It should not be defined for clang, should it?
from winapi.
You're right, it shouldn't be. Hm.
from winapi.
I confirm that the problem occurs with sp_interlocked.hpp
as well. Should be fixed in boostorg/smart_ptr@4eb53db. I still couldn't figure out how to get clang-cl
to work under b2
though.
from winapi.
Thanks, Peter. I've incorporated some of your changes in bf9dfd9. Hopefully, it fixes the problem.
from winapi.
Related Issues (20)
- "ISO C++ prohibits anonymous structs" warning in system.hpp HOT 1
- Defines min and max macros on Windows that conflict with standard C++ HOT 9
- incompatibilty with ISOLATION_AWARE_ENABLED HOT 1
- Cygwin 64 issue HOT 4
- warning on anonymous struct HOT 1
- warning on duplicate macro definitions HOT 1
- Windows CE 7.0 and Windows Mobile 6.0 do not always dllimport WINAPI functions HOT 5
- STRICT macro defined in basic_types.hpp HOT 1
- Build Failure with Boost 1.68 Using GCC 8.2.1 and MinGW-w64 (Windows, _WIN32_WINNT=0xA00) HOT 1
- Compiling with MSVC for ARM64 emits warning C4302 (truncation from 'void *const ' to 'long')
- warning C28251: Inconsistent annotation for function HOT 4
- Missing #include sdkddkver.h before checking _WIN32_WINNT HOT 1
- basic_types.hpp includes <winerror.h> HOT 3
- Compile error when including boost\thread\win32\thread_data.hpp on win64 HOT 2
- clang-cl compilation error HOT 12
- Error C2467 when "Disable Language Extensions" is set to "Yes (/Za)" in MSVC 16.8 HOT 3
- Multiple Errors - C28251 in VS 2022 (17.0.3) - v143 HOT 1
- The Boost WINAPI partitioning scheme doesn't work for WINAPI_FAMILY_GAMES HOT 4
- Problem building 1.81.0 on MSVC 14.3 (VS2022 17.6.2) with sanitizer HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winapi.