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 for karma/binary #783

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

iv-m
Copy link
Contributor

@iv-m iv-m commented Feb 7, 2024

Previosuly, scoped_enum was included into karma's binary.hpp through boost/endian/detail/order.hpp. Since Boost 1.84.0 that file stopped using scoped enum and switched to use plain enum class instead; so it needs to be added here.

Fixes #779

Previosuly, scoped_enum was included into karma's binary.hpp
through boost/endian/detail/order.hpp. Since Boost 1.84.0
that file stopped using scoped enum and switched to use
plain enum class instead; so it needs to be added here.
@iv-m
Copy link
Contributor Author

iv-m commented Feb 7, 2024

I discovered this issue when trying to build some code with boost 1.84.0. With boost 1.83.0 it compiled just fine, but with 1.84.0 it fails with

/usr/include/boost/spirit/home/karma/binary/binary.hpp:197:19: error: 'BOOST_SCOPED_ENUM' has not been declared
  197 |         template <BOOST_SCOPED_ENUM(boost::endian::order) bits>
      |                   ^~~~~~~~~~~~~~~~~

... and a few screens of various errors.

@Kojoley Kojoley merged commit 008109a into boostorg:develop Feb 7, 2024
12 of 13 checks passed
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.

Build error C2061: syntax error: identifier 'BOOST_SCOPED_ENUM' on Windows MSVC
2 participants