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

Make BOOST_STRONG_TYPEDEF constexpr #301

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jakubmiernik
Copy link

@jakubmiernik jakubmiernik commented Nov 24, 2023

Lack of constexpr constructor for BOOST_STRONG_TYPEDEF cause errors in clang and warning in gcc when using in constexpr functions.

@robertramey
Copy link
Member

Suppose we make this change. What happens when we use it with a compiler which does not support constant expressions? I think this needs to be more elaborate to be totally portable. I see merit in the idea, but I don't see it being portable to all compilers that the boost serialization library supports.

FYI. The serialization library no longer uses this macro. It's been left in there as it seems that many find it useful.

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