SERVER-82285 Set ASIO_HAS_STD_INVOKE_RESULT is compiling with C++20#1576
Closed
mkuzmik wants to merge 1 commit intomongodb:masterfrom
Closed
SERVER-82285 Set ASIO_HAS_STD_INVOKE_RESULT is compiling with C++20#1576mkuzmik wants to merge 1 commit intomongodb:masterfrom
mkuzmik wants to merge 1 commit intomongodb:masterfrom
Conversation
|
@dmoody256 could you take a look at this PR? |
dmoody256
reviewed
Mar 13, 2024
| 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(): |
Contributor
There was a problem hiding this comment.
c++20 is currently the only viable option, so theres not much reason to put this define under this condition. Also this condition is isolated to exactly c++20 and so its not forward compatible. So it should just be unconditionally added after the c++20 check above.
# ASIO will use std::result_of which was removed in c++20
# force it to use the newer alternative std::invoke_result
myenv.Append(CPPDEFINES=["ASIO_HAS_STD_INVOKE_RESULT"])
Author
|
Closing this one as it seems outdated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://jira.mongodb.org/browse/SERVER-82285