Nuzhny007/Non-Maximum-Suppression

how to change auto n = idxs.extract(pos); in c++14

Closed this issue · 3 comments

I only have c++14 how to change
auto n = idxs.extract(pos);

is this correct?
//auto n = idxs.extract(pos);
//n.key() = newScore;
//idxs.insert(std::move(n));
idxs.insert(std::multimap<float, size_t>::value_type(newScore, pos->second));
idxs.erase(pos);
++pos;

I only have c++14 how to change auto n = idxs.extract(pos);

Remove old value and insert new. And yes - your code is correct

thansk man