-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Reactor: ensure consistent vector lengths in C++ layer #756
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the issue with the keeping the length of m_advancelimits
consistent across different derived classes (including user-created ones). I wanted to propose an alternative solution, which is to simply resize it to the correct size in the few locations where it is used (all of which are within the Reactor
base class). See bd58afa for the implementation of this option.
I'm 👍 on making the related methods non-virtual.
@speth ... resizing at a later time is a very good suggestion! Not having to resize in overloaded functions is great. Along those lines, I am suggesting to not resize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. I only have a couple of minor suggestions. In addition to these, can you squash the third commit into the first, since it reverts a number of the changes made in the first commit?
- Keep m_advancelimit length at zero unless it is used
b4d0cce
to
52e7920
Compare
Codecov Report
@@ Coverage Diff @@
## master #756 +/- ##
==========================================
+ Coverage 70.83% 70.84% +<.01%
==========================================
Files 372 372
Lines 43720 43732 +12
==========================================
+ Hits 30971 30982 +11
- Misses 12749 12750 +1
Continue to review full report at Codecov.
|
Done (and squashed). |
Changes proposed in this pull request
Reactor::m_advancelimits.size()
isReactor::m_nv
m_advancelimits.size()
<m_nv
in custom additions