I have written a simple parser that converts a c++ string to a chrono year_month_day object. This works fine if I use it in an empty project with C++20 in MS Visual Studio. If I create a CUDA runtime project and copy/paste exactly the same code I get the error “namespace “std::chrono” has no member “year_month_day””. This error usually only occurs when the C++ Language Standard is earlier than 20 but it seems with CUDA projects it ignores this setting. Any ideas how to fix it?
this may be of interest
Thanks! If I add "–std=c++20 " under additional options it works; however I had a “/utf-8” option that no longer works. Should I put it in quotes?