Skip to content

gi/arg-cache.cpp: Fix building on Visual Studio

Chun-wei Fan requested to merge fix-msvc-gnome42 into master

Hi,

Recently some constructors in gi/arg-cache.cpp were made to be constexpr (commit d11b2831), which sadly broke the build on Visual Studio as it rejected this update for the CallbackIn struct/class definition (ca. line 708), stating that SkipAll is the offending definition. Fix the build by backing out of the change to the constructor for Callback.

This actually affects both the latest gnome-42 branch as well as the master branch, for all supported Visual Studio versions (2019 & 2022).

With blessings, thank you!

Merge request reports