Hi,
I am facing following errors in all the source files when trying to compile SensorsComboDriver for C++20.
1>C:\Windows-driver-samples\sensors\SensorsComboDriver\Clients.h(162,1): error C2440: ‘initializing’: cannot convert from ‘const char [12]’ to ‘PCHAR’
1>C:\Windows-driver-samples\sensors\SensorsComboDriver\Clients.h(162,1): message : Conversion from string literal loses const qualifier (see /Zc:strictStrings)
Here is what I have tried doing:
- Open SensorsComboDriver from windows-driver-samples.
- Successfully built the project.
- Now change the C++ language standard from default to C++20.
- Observed the above issues.
Looking at the other OSR posts, I got to know that C++20 is supported in KMDF except STLs and exceptions.
In that case, I was wondering why I am getting the above errors.
Are there any other unsupported features of C++20 that are causing the above issues?
Thanks in advance for the help.
Chandra