Skip to content

Conversation

@maxpietsch
Copy link
Member

fixes segfault and assert failure in command line parsing as described in #1006

@maxpietsch maxpietsch merged commit cd5e098 into master Jun 2, 2017
@maxpietsch maxpietsch deleted the mrview_info_fix branch June 2, 2017 17:48
}

assert ("shouldn't reach here!" && false);
assert (opt.opt->is ("info") or opt.opt->is ("debug") or ("shouldn't reach here!" && false));
Copy link
Member

Choose a reason for hiding this comment

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

Struggling a little to understand how this even compiles...? What are these 'or' statements doing in there? This is supposed to be C++, not python... 😕

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Wow! I never knew that... Guess you learn new things every day... 😉

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.

4 participants