Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
44976be6
Commit
44976be6
authored
Mar 26, 2016
by
Konstantinos Chatzilygeroudis
Browse files
Fix for no TBB
parent
773a88a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tests/bo_functions.cpp
View file @
44976be6
...
...
@@ -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
);
#else
typename
T1
::
iterator
a
;
a
=
map
.
find
(
key
);
if
(
a
==
map
.
end
())
map
[
key
]
=
std
::
vector
<
std
::
pair
<
double
,
double
>>
();
#endif
a
->
second
.
push_back
(
p
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment