Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::unordered_set<ObjectRepresentation*> incompletePieces;
- while (incompletePieces.size()){
- for (auto containedPiece : incompletePieces){ //Warning at this line that loop will run at most once
- // .... doing some stuff with the contained piece
- incompletePieces.erase(containedPiece);
- break;
- }
- }
Add Comment
Please, Sign In to add comment