Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing includes in match_manip.hpp #767

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

Lastique
Copy link
Member

@Lastique Lastique commented Sep 2, 2023

Use failbit as a dependent name to avoid having to include <ios> for std::ios_base::failbit.

Add missing includes for enable_if and mpl::true_/mpl::false_.

This was referenced Oct 7, 2023
@Flamefire
Copy link
Contributor

This misses a couple of other uses of std::ios_base::failbit, e.g. in include/boost/spirit/home/karma/stream/format_manip.hpp & include/boost/spirit/home/karma/stream/detail/format_manip.hpp, see https://github.com/Flamefire/spirit/actions/runs/6442261776/job/17492909668 & #774

Use failbit as a dependent name to avoid having to include <ios>
for std::ios_base::failbit.

Add missing includes for enable_if, mpl::true_/mpl::false_ and scoped
enums.
@Lastique Lastique force-pushed the feature/fix_missing_includes branch from f00a896 to 880efca Compare October 8, 2023 00:58
@Lastique
Copy link
Member Author

Lastique commented Oct 8, 2023

I've added a few more workarounds, but it looks like missing includes are all over Boost.Spirit.

This PR is not meant to be an exhaustive fix for this problem, just something I found during the switch to invoke_swap.

@Flamefire
Copy link
Contributor

Interesting that you seem to have required more changes, I added much less to make the test PR pass

Anyway it's a good way forward.

@Lastique
Copy link
Member Author

Lastique commented Oct 8, 2023 via email

@Flamefire
Copy link
Contributor

My original set of changes were enough to get the tests passing for me. The added ones are what you pointed out and what caught my eye while I was fixing those.

I see makes sense. I tested your changes in #774 and it passes CI so this is good to merge 👍

@djowel djowel merged commit 59515f0 into boostorg:develop Oct 8, 2023
7 of 25 checks passed
@Lastique Lastique deleted the feature/fix_missing_includes branch October 8, 2023 23:35
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.

3 participants