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

embobjMotionControl: fix windows execution #703

Merged
merged 1 commit into from
Dec 15, 2020
Merged

Conversation

Nicogene
Copy link
Member

Under Windows using reserve without any resize throws a "out of range" exception.
This is due to the fact that after that reserve the capacity is nj, the size is 0.
I am surprised that this code is allowed under linux, but maybe I am missing something.

BTW this code is tested on windows and it works

Under Windows using `reserve` without any `resize` throws a "out of range" exception. 
This is due to the fact that after that `reserve` the `capacity` is `nj`, the size is `0`.
I am surprised that this code is allowed under linux, but maybe I am missing something.

BTW this code is tested on windows and it works
Copy link
Member

@pattacini pattacini left a comment

Choose a reason for hiding this comment

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

Thanks @Nicogene 👍🏻

@pattacini pattacini merged commit a57b591 into master Dec 15, 2020
@pattacini pattacini deleted the fix/embojMCReserve branch December 15, 2020 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants