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

Bugfix: Replace byte array with std::array to allow zero-sized arrays #43

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

aentinger
Copy link
Member

std::array allows for zero-sized arrays. This can happen if a UAVCAN message has no payload.

@aentinger aentinger added the bug label Sep 16, 2020
@aentinger aentinger self-assigned this Sep 16, 2020
…ARAM> since ISO C++ forbids 0-sized arrays (which can occur when you've got UAVCAN messages with no payload). Fortunately std::array can exist with a size of 0.
@aentinger aentinger merged commit 3ef7862 into master Sep 16, 2020
@aentinger aentinger deleted the replace-byte-array-std-array branch September 16, 2020 12:53
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.

None yet

1 participant