-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bridges C++ tests. #31
Comments
And then update the BRIDGES website with the tests being used there. |
Note that there is no reason to allocate the BRIDGES object dynamically to begin with.
Then deallocation will be done by the compiler when main scopes out.
|
So good practice is if you have allocation calls, also have
deallocation calls. One of our users pointed out that..
The alternative is not to use dynamic allocation for BRIDGES object, as
you say.
-- krs
On 1/27/19 9:51 PM, Erik Saule wrote:
Note that there is no reason to allocate the BRIDGES object
dynamically to begin with.
Then deallocation will be done by the compiler when main scopes out.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFZSOFDBjNdEuljFobZxxGnhnF58Wb84ks5vHmWpgaJpZM4aVB9a>.
--
Kalpathi Subramanian Ph: 704 687 8579
Associate Professor Email: krs@uncc.edu
Dept of Computer Science Web:http://webpages.uncc.edu/krs
The University of North Carolina
Charlotte, NC 28202-0001
|
Ok, I can update the tests. Do we want to deallocate the bridges objects that are already there or do we want to remove allocation all together? |
I think we should cut it altogether. That the RAII way of doing it.
@krs-world, opinion?
|
Its fine.. didnt you once say that we might need to pass the Bridges
object around - to the data acquisition related part of the s/w?
-- krs
…On 1/28/19 6:19 PM, Erik Saule wrote:
I think we should cut it altogether. That the RAII way of doing it.
@krs-world, opinion?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFZSOL2eDA3O3Pvv3YMFW8m0xU0fQpQNks5vH4WUgaJpZM4aVB9a>.
|
indeed, we will need to. but that is unrelated to how the object is allocated to begin with.
(or did you mean we should change that as well?)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We need to fix the C++ tests, so that we deallocate the BRIDGES object (and any other allocated object) before termination. And make sure there is a return code for the main() - should return 0, which is the normal return code.
The text was updated successfully, but these errors were encountered: