Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use std::multiset::iterator instead of std::set::iterator with std::m…

…ultiset.

Apparently, the iterators were compatible, in some library implementations.
  • Loading branch information...
commit 5b9a496b1a5dd3f1d63e0f035561bd750266d2da 1 parent c9fa97c
Cyp Cyp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/ivis_opengl/bitimage.cpp
2  lib/ivis_opengl/bitimage.cpp
View
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.