Commit 44976be6 authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Fix for no TBB

parent 773a88a9
......@@ -267,9 +267,16 @@ bool is_in_argv(int argc, char** argv, const char* needle)
template <typename T1, typename T2>
void add_to_results(const char* key, T1& map, const T2& p)
#ifdef USE_TBB
typename T1::accessor a;
if (!map.find(a, key))
map.insert(a, key);
typename T1::iterator a;
a = map.find(key);
if (a == map.end())
map[key] = std::vector<std::pair<double, double>>();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment