When I include cccl/atomic in a .cu file on VisualStudio 2022, CUDA Toolkit 13.1, I get an error related to requiring C++ 17:
#error: libcu++ requires at least C++ 17. Define CCCL_IGNORE_DEPRECATED_CPP_DIALECT to suppress this message.
![]()
The error comes from these lines in the cpp_dialect.hpp file:
I have enabled C++17 in the project, and when I hover over “_CCCL_STD_VER”, I see that it is defined to be “2017”:
So I should not be reaching the error statement. Does anyone have any suggestions for whether this is a VisualStudio problem or a CUDA/nvcc problem, and how I might resolve it?
Thank you,
Derek

