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

Use BOOST_ASSERT instead of a private assert macro for span #189

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

pdimov
Copy link
Member

@pdimov pdimov commented Feb 24, 2025

Instead of removing assertions under GCC 4.x to retain constexpr support, this retains the assertions and removes constexpr support under GCC 4.x instead. The presumption is that GCC 4.x users care more about assertions than they care about constexpr (which is hardly useful there anyway.)

@glenfe
Copy link
Member

glenfe commented Feb 24, 2025

I would rather just drop GCC 4 support in span instead.

(In +2 releases after announcing it)

@pdimov
Copy link
Member Author

pdimov commented Feb 25, 2025

One does not preclude the other.

@glenfe
Copy link
Member

glenfe commented Feb 25, 2025

Adding the asserts in the way I did was a non-breaking change. The first breaking change I want to make is dropping GCC 4 support. I'm happy to make it sooner.

(Until then I'm fine with GCC 4 users not having asserts)

@pdimov
Copy link
Member Author

pdimov commented Feb 25, 2025

It's not a breaking change if it doesn't break anything. :-)

@pdimov
Copy link
Member Author

pdimov commented Feb 27, 2025

Regardless of whether this is applied, develop needs to be merged to master.

(Until then I'm fine with GCC 4 users not having asserts)

That's fine in principle, but in this specific case, span has only one purpose in life and it's to assert. :-)

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