value must be removed

Was reported as a warning by MSVC 2022
This commit is contained in:
Sébastien Loriot 2022-11-17 19:17:32 +01:00
parent 8bbbf8d494
commit 285dbb96bf
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public:
Greater greater (traits.less_xy_2_object());
Equal equal;
std::sort(this->begin(), this->end(), greater);
std::unique(this->begin(), this->end(),equal);
this->erase(std::unique(this->begin(), this->end(),equal), this->end());
// front() is the point with the largest x coordinate