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