openexr icon indicating copy to clipboard operation
openexr copied to clipboard

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

Open pablode opened this issue 6 months ago • 0 comments

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]

pablode avatar Jul 28 '24 22:07 pablode