diff --git a/DiffData.cpp b/DiffData.cpp index 5eaef62b..3f113a5f 100644 --- a/DiffData.cpp +++ b/DiffData.cpp @@ -218,8 +218,9 @@ void DiffDataSets::GetDiffIndices(const string& set, const string& target, vecto outIndices.push_back(resultIt->first); } } - std::sort(outIndices.begin(), outIndices.end()); - std::unique(outIndices.begin(), outIndices.end()); + + sort(outIndices.begin(), outIndices.end()); + outIndices.erase(unique(outIndices.begin(), outIndices.end()), outIndices.end()); } void DiffDataSets::ClearSet(const string& name) {