Enable range based looping of sf::VertexArray#3366
Conversation
ff43127 to
62617dc
Compare
Pull Request Test Coverage Report for Build 12536923590Details
💛 - Coveralls |
|
|
This operator is still used indirectly by some other tests. |
Which one? Coveralls report does not see it. |
SFML/test/Graphics/VertexArray.test.cpp Line 78 in 3c084bf It’s used in a few places. It’s weird that coverage doesn’t catch this. |
|
Ok, this is because the non-const variant is used by tests but the const variant is not. |
62617dc to
8290b78
Compare
Ah okay this makes sense. I added tests explicitly for this case to make sure it remains covered. Thanks for catching this! |
8290b78 to
cecba94
Compare
cecba94 to
a04a698
Compare
a04a698 to
e8ba63c
Compare
e8ba63c to
a25a87e
Compare
a25a87e to
508c3ea
Compare
|
Am I understanding it correctly, that this opens up additional opens to manipulate the VertexArray's vertices? Anything that takes a What I mean, the PR focuses on ranged-based looping, but the feature itself goes beyond that. So I just want to make sure when people do manipulate the vertices through that interface, nothing breaks. I currently don't see anything, but maybe someone else can think of some potential problem. |
they can't break anything begin and end are just equalivent semanticly to |
|
As far as I’m aware, this is purely syntactic sugar. It doesn’t enable any functionality that wasn’t previously possible through an existing interface. |
eXpl0it3r
left a comment
There was a problem hiding this comment.
Seems like a useful addition 👍

Description
beginandenditerators are all that is required of a container to supported C++11 ranged-for loops. This PR also uses this feature as much as possible internally. Let me know if I missed any more places we can be using this.