Skip to content

Catch Boost Exceptions + Address some warnings#69

Merged
jacobperron merged 2 commits intoAutonomyLab:masterfrom
SwappyG:catch_boost_exceptions
Oct 4, 2022
Merged

Catch Boost Exceptions + Address some warnings#69
jacobperron merged 2 commits intoAutonomyLab:masterfrom
SwappyG:catch_boost_exceptions

Conversation

@SwappyG
Copy link
Contributor

@SwappyG SwappyG commented Jun 28, 2022

this PR addresses a couple of (minor) issues I ran into while test driving this library. Otherwise, it's working great so far!

Changes:

  • In Serial, wrap try/catch around boost asio calls that throw
  • static_cast enum to uint8 instead of implicit (this was coming up as a compile error for me)
  • change fabs -> std::abs in a couple places (compile warnings)
  • add virtual destructors to Serial child classes (compile warnings)

Copy link
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for contribution!

@jacobperron jacobperron merged commit d75d41c into AutonomyLab:master Oct 4, 2022
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