Skip to content

Conversation

@Vipul-Cariappa
Copy link
Collaborator

Enables test_cpp11features.py::TestCPP11FEATURES::test10_optional.

"#include <set>\n" // FIXME: Replace with modules
"#include <chrono>\n" // FIXME: Replace with modules
"#include <cmath>\n" // FIXME: Replace with modules
"#if 201703 <= __cplusplus\n#include <optional>\n#endif\n"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"#if 201703 <= __cplusplus\n#include <optional>\n#endif\n"
#if __has_include(<optional>)
#include <optional>
#endif

Copy link
Collaborator

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Vipul-Cariappa Vipul-Cariappa merged commit f486377 into compiler-research:master Jan 29, 2025
42 checks passed
@Vipul-Cariappa Vipul-Cariappa deleted the dev/optional-header branch January 29, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants