-
Notifications
You must be signed in to change notification settings - Fork 5
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
Uninitialised Variables #8
Comments
What do you mean? They are initialized when the object is created. |
I mean you can have a constructor to explicitly initialise the values. |
That sounds reasonable, but it also creates another set of problems. I like the terseness of just writing Another alternative might be to use return-type deduction to reduce the number of times I have to write the class name. But honestly, is it that big problem? |
No. This is not a big problem but takes a while to understand. The problem is that one do no know if the fields get mutated some where else and if so where. Maybe they can be just made consts. |
Ah, |
Following variables do not seam to be explicitly initialised:
is_closed
,is_left_closed
in bothpolicy.h
files.The text was updated successfully, but these errors were encountered: