openigtlink / OpenIGTLink

Free, open-source network communication library for image-guided therapy
http://openigtlink.org
BSD 3-Clause "New" or "Revised" License
102 stars 184 forks source link

FIX: make sure to assign string literals to `const char*` #260

Closed ClaudioHoffmann closed 1 year ago

ClaudioHoffmann commented 1 year ago

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.