vbox6: adapt to C++20 function template syntax

GCC's -std=gnu++17 is required for VirtualBox 6 but, fortunately,
support the "auto template" syntax with -fconcepts.

Issue #5227
This commit is contained in:
Christian Helmuth 2024-05-24 11:04:09 +02:00
parent 65ca9ee906
commit 16e088a34e

View File

@ -63,7 +63,7 @@ VBOX_CC_OPT += -DVBOX_WITH_GUEST_PROPS
# prevent access to port content at the dependency stage of the build system
ifeq ($(called_from_lib_mk),yes)
include $(VIRTUALBOX_DIR)/Version.kmk
CC_CXX_OPT_STD = -std=gnu++17
CC_CXX_OPT_STD = -std=gnu++17 -fconcepts
endif
# if included from virtualbox6/target.mk provide version but leave CC_CXX_OPT_STD alone