Skip to content

arg-cache.cpp: Fix build on Visual Studio

Chun-wei Fan requested to merge master.msvc into master

Hi,

From the commit message:

Unfortunately using designated initializers in C++ is a GCCism, which is not allowed in non-GCC C++17, so go back to the traditional way to set up the structures...

See: https://en.cppreference.com/w/cpp/language/aggregate_initialization

It seems that designated initializers are only allowed in the C++ standard in C++20.

With blessings, thank you!

Merge request reports