Skip to content

Commit

Permalink
Use std::multiset::iterator instead of std::set::iterator with std::m…
Browse files Browse the repository at this point in the history
…ultiset.

Apparently, the iterators were compatible, in some library implementations.
  • Loading branch information
Cyp committed Aug 11, 2012
1 parent c9fa97c commit 5b9a496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ivis_opengl/bitimage.cpp
Expand Up @@ -66,7 +66,7 @@ inline void ImageMerge::arrange()
{
--r;

std::set<ImageMergeRectangle>::iterator f = freeSpace.lower_bound(*r); // Find smallest free rectangle which is large enough.
std::multiset<ImageMergeRectangle>::iterator f = freeSpace.lower_bound(*r); // Find smallest free rectangle which is large enough.
while (f != freeSpace.end() && (f->siz.x < r->siz.x || f->siz.y < r->siz.y))
{
++f; // Rectangle has wrong shape.
Expand Down

0 comments on commit 5b9a496

Please sign in to comment.