Assigning string literals to char* has been illegal since C++11, but Visual Studio only started to enforce this in C++20 mode, where the /permissive flag is disabled by default. With this small change, the project now also compiles in Visual Studio's C++20 mode.
Assigning string literals to
char*
has been illegal since C++11, but Visual Studio only started to enforce this in C++20 mode, where the/permissive
flag is disabled by default. With this small change, the project now also compiles in Visual Studio's C++20 mode.