-
-
Notifications
You must be signed in to change notification settings - Fork 496
Refactors to the code #1467
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
Refactors to the code #1467
Conversation
Yeah so I've already fucked up my clean commit list... 😁😁
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.
What is the extra scope here for? Also there's not really a need for const here
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.
well, just wanted to indicate neither of the 2 bools are used later. Putting the in a scope indicates that.
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.
Resolved?
...ning the wrong value
... emplace_back, not push_back
...k instead of inserting copying the QueueItem
...aphics::DrawCircleQueued
This PR is (削除) getting (削除ここまで) too big + disorganised.
I agree. Ill open separate PRs.
@ghost
ghost
Jun 11, 2020
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 don't think noexcept is needed here. The CVector classes don't throw any exceptions. Also, I feel like constexpr is not useful here since the result is usually not known at compile time. The compiler is smart enough to know when to inline a function. This is just making the code hard to read.
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.
please comment to #1478, and lets discuss it there.
tbh I agree, but nobody reads CVector code anyways. Constexpr is needed(at least for the constructor) in CGraphics refactor(somewhere in the end, the sphere thing)
As noted above, this is getting disorganized. I'll close it, and do separate PRs for the ease of testing, and merging.
Alright, here I'll try to refactor a lot of code, while in the same time having meaningful commits.
Im creating this PR, so the changes can be reviewed if needed.
Also, Im trying not to refactor the code too much, so I dont introduce bugs, because that woudnt be fun.
Mostly I refactor loop to use 'range based for loop' I also add a lot of 'auto', and 'constexpr' where needed.