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

static_variant::set_which() rejects negative param #9

Merged
merged 1 commit into from
Jan 21, 2018

Conversation

abitmore
Copy link
Member

No description provided.

Copy link

@pmconrad pmconrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. _tag can only become negative in init() if X is not in Types, and that is checked before init() is called.
(Ignoring the case when Types has more than MAXINT members.)

Copy link
Member

@oxarbitrage oxarbitrage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice find.

@oxarbitrage oxarbitrage merged commit a1e1599 into master Jan 21, 2018
@abitmore abitmore deleted the abitmore-patch-1 branch February 14, 2018 11:27
oxarbitrage pushed a commit to oxarbitrage/bitshares-fc that referenced this pull request Mar 23, 2018
oxarbitrage pushed a commit to oxarbitrage/bitshares-fc that referenced this pull request Mar 23, 2018
oxarbitrage pushed a commit to oxarbitrage/bitshares-fc that referenced this pull request Mar 23, 2018
oxarbitrage pushed a commit to oxarbitrage/bitshares-fc that referenced this pull request Mar 23, 2018
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.

3 participants