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

cpp: Fallback to evmc::is_zero() in case the deprecated ::is_zero() is used #406

Merged
merged 1 commit into from
Aug 19, 2019

Conversation

chfast
Copy link
Member

@chfast chfast commented Aug 17, 2019

The deprecated is_zero() is removed, but evmc.hpp is included in helpers.hpp in a way that allows using is_zero() as before. This is more user-friendly solution because now evmc::is_zero() can be used also for C types. Before, the deprecated overloading was selected by the compiler.

…s used

The deprecated is_zero() is removed, but evmc.hpp is included in helpers.hpp in a way that allows using is_zero() as before. This is more user-friendly solution because now evmc::is_zero() can be used also for C types. Before, the deprecated overloading was selected by the compiler.
@axic
Copy link
Member

axic commented Aug 18, 2019

I think it should still remain deprecated if you want users' to move to the other header. However, if 7.0 just breaks compatibility without this warning, then this can be merged.

@chfast
Copy link
Member Author

chfast commented Aug 18, 2019

This change makes that less changes are needed in Hera, but it is not a big deal. On the other hand, we cannot deprecate a header in a compiler.

@chfast
Copy link
Member Author

chfast commented Aug 19, 2019

@gumb0 @axic any final opinions?

@axic
Copy link
Member

axic commented Aug 19, 2019

I think either way is fine, evmc 7 will be a breaking change and can remove all these.

@chfast
Copy link
Member Author

chfast commented Aug 19, 2019

Ok, I'm merging this then.

@chfast chfast merged commit 1cfc035 into release/6.3 Aug 19, 2019
@chfast chfast deleted the deprecated_is_zero branch August 19, 2019 21:08
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