Skip to content

Conversation

@jonesmz
Copy link

@jonesmz jonesmz commented Jul 14, 2021

No description provided.

@vprus
Copy link
Collaborator

vprus commented Jul 15, 2021

Thanks for the PR?
Would it change the C++ level the library requires, though? I think it still compiles without C++ 11.

@jonesmz
Copy link
Author

jonesmz commented Jul 15, 2021

noexcept keyword was introduced in C++11.

noexcept is not 100% identical to throw(), but for the way boost program options uses it, they are equivalent.

Someone could define a BOOST_PROGRAM_OPTIONS_NOTHROW macro, which would use either throw() or noexcept based on the C++ language version detected at compile time.

Just to be clear, I don't intend to revisit this PR, or add support for older versions of C++ earlier than C++11. It's not that I think that's a bad idea, it's just beyond the scope of the time I have available for this work.

Someone else can add new commits to this PR, or this PR can be closed and replaced with a different PR.

@vprus
Copy link
Collaborator

vprus commented Sep 27, 2025

This has been essentially done in 1d7ccef

@vprus vprus closed this Sep 27, 2025
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