-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Is it possible to use unordered_map in parallel_for? I have tried using the following:
tbb::parallel_for(my_map.begin(), my_map.end(), [&](std::pair<uint16_t, std::vector<src_weight>> x) {
// My code here
});
but I got a compilation error saying
error: no matching conversion for static_cast from 'int' to 'std::__1::__hash_map_const_iterator<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<unsigned short,
std::__1::vector<src_weight, std::__1::allocator<src_weight> > >, void *> *> >'
I wonder is there any trick to use unordered_map with tbb::parallel_for?
tnugent97
Metadata
Metadata
Assignees
Labels
No labels