Skip to content

Make alpha optional when parsing a Color from an input stream#106

Merged
azeey merged 4 commits intogazebosim:ign-math6from
azeey:stream_alpha_optional
Apr 28, 2020
Merged

Make alpha optional when parsing a Color from an input stream#106
azeey merged 4 commits intogazebosim:ign-math6from
azeey:stream_alpha_optional

Conversation

@azeey
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@osrf-jenkins run tests

@azeey azeey requested a review from nkoenig April 20, 2020 19:05
@iche033
Copy link
Copy Markdown
Contributor

iche033 commented Apr 27, 2020

update changelog?

changes look good to me

Addisu Taddese and others added 3 commits April 28, 2020 12:47
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Steven Peters <scpeters@openrobotics.org>
@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.

6 participants