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 alpha optional when parsing a Color from an input stream #106

Merged
merged 4 commits into from
Apr 28, 2020

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Apr 16, 2020

The stream insertion operator is used in libsdformat to parse Color values, and as far as I know, alpha is already optional, but currently, if the exception mask for failbit is set (we are doing that in libsdformat to catch more parsing errors), the operator>> function will throw an exception. This PR keeps the current behavior by keeping alpha optional, but prevents an exception from being thrown.

@j-rivero
Copy link
Contributor

@osrf-jenkins run tests

@iche033
Copy link
Contributor

iche033 commented Apr 27, 2020

update changelog?

changes look good to me

@azeey azeey merged commit c272642 into gazebosim:ign-math6 Apr 28, 2020
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.

5 participants