From bc47de4e6d187fd6dff75063bb21637b1b35bf77 Mon Sep 17 00:00:00 2001 From: Mateusz Kuzmik Date: Wed, 18 Oct 2023 14:48:21 +0200 Subject: [PATCH] SERVER-82285 Set ASIO_HAS_STD_INVOKE_RESULT is compiling with C++20 --- SConstruct | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SConstruct b/SConstruct index cb4604ad614d5..b4cc8837b1d9c 100644 --- a/SConstruct +++ b/SConstruct @@ -3868,6 +3868,9 @@ def doConfigure(myenv): if get_option('cxx-std') == "20" and not conf.CheckCxx20(): myenv.ConfError('C++20 support is required to build MongoDB') + if get_option('cxx-std') == "20" and conf.CheckCxx20(): + myenv.Append(CPPDEFINES=["ASIO_HAS_STD_INVOKE_RESULT"]) + conf.Finish() # C11 memset_s - a secure memset