Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::atomic_*() overloads for shared_ptr are deprecated in C++20 #1786

Open
pablode opened this issue Jul 28, 2024 · 0 comments
Open

std::atomic_*() overloads for shared_ptr are deprecated in C++20 #1786

pablode opened this issue Jul 28, 2024 · 0 comments
Labels
good first issue Possible one-day project for somebody new help wanted

Comments

@pablode
Copy link

pablode commented Jul 28, 2024

Just a heads-up that following functionality is deprecated in C++ 20:

D:\a\gatling\gatling\extern\openexr\src\lib\IlmThread\IlmThreadPool.cpp(119,52): warning C4996: 'std::atomic_load': warning STL4029: std::atomic_*() overloads for shared_ptr are deprecated in C++20. The shared_ptr specialization of std::atomic provides superior functionality. You can define _SILENCE_CXX20_OLD_SHARED_PTR_ATOMIC_SUPPORT_DEPRECATION_WARNING or _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS to acknowledge that you have received this warning. [D:\a\gatling\gatling\BUILD\extern\openexr\src\lib\IlmThread\IlmThread.vcxproj]
D:\a\gatling\gatling\extern\openexr\src\lib\IlmThread\IlmThreadPool.cpp(123,33): warning C4996: 'std::atomic_exchange': warning STL4029: std::atomic_*() overloads for shared_ptr are deprecated in C++20. The shared_ptr specialization of std::atomic provides superior functionality. You can define _SILENCE_CXX20_OLD_SHARED_PTR_ATOMIC_SUPPORT_DEPRECATION_WARNING or _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS to acknowledge that you have received this warning. [D:\a\gatling\gatling\BUILD\extern\openexr\src\lib\IlmThread\IlmThread.vcxproj]
  part.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\memory(3717,17): warning C4996: 'std::atomic_load_explicit': warning STL4029: std::atomic_*() overloads for shared_ptr are deprecated in C++20. The shared_ptr specialization of std::atomic provides superior functionality. You can define _SILENCE_CXX20_OLD_SHARED_PTR_ATOMIC_SUPPORT_DEPRECATION_WARNING or _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS to acknowledge that you have received this warning. [D:\a\gatling\gatling\BUILD\extern\openexr\src\lib\IlmThread\IlmThread.vcxproj]
D:\a\gatling\gatling\extern\openexr\src\lib\IlmThread\IlmThreadPool.cpp(119): message : see reference to function template instantiation 'std::shared_ptr<IlmThread_3_2::ThreadPoolProvider> std::atomic_load<IlmThread_3_2::ThreadPoolProvider>(const std::shared_ptr<IlmThread_3_2::ThreadPoolProvider> *)' being compiled [D:\a\gatling\gatling\BUILD\extern\openexr\src\lib\IlmThread\IlmThread.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\memory(3747,17): warning C4996: 'std::atomic_exchange_explicit': warning STL4029: std::atomic_*() overloads for shared_ptr are deprecated in C++20. The shared_ptr specialization of std::atomic provides superior functionality. You can define _SILENCE_CXX20_OLD_SHARED_PTR_ATOMIC_SUPPORT_DEPRECATION_WARNING or _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS to acknowledge that you have received this warning. [D:\a\gatling\gatling\BUILD\extern\openexr\src\lib\IlmThread\IlmThread.vcxproj]
D:\a\gatling\gatling\extern\openexr\src\lib\IlmThread\IlmThreadPool.cpp(123): message : see reference to function template instantiation 'std::shared_ptr<IlmThread_3_2::ThreadPoolProvider> std::atomic_exchange<IlmThread_3_2::ThreadPoolProvider>(std::shared_ptr<IlmThread_3_2::ThreadPoolProvider> *,std::shared_ptr<IlmThread_3_2::ThreadPoolProvider>)' being compiled [D:\a\gatling\gatling\BUILD\extern\openexr\src\lib\IlmThread\IlmThread.vcxproj]
@cary-ilm cary-ilm added good first issue Possible one-day project for somebody new help wanted labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Possible one-day project for somebody new help wanted
Projects
None yet
Development

No branches or pull requests

2 participants