Commit 7f537087 authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Minor fixes to get experimental compile with[out] tbb

parent 2e8f794e
......@@ -25,6 +25,7 @@ env:
- LIBCMAES=OFF NLOPT=OFF TBB=ON EXPERIMENTAL=OFF
- LIBCMAES=OFF NLOPT=OFF TBB=OFF EXPERIMENTAL=OFF
- LIBCMAES=OFF NLOPT=OFF TBB=OFF EXPERIMENTAL=ON
- LIBCMAES=OFF NLOPT=OFF TBB=ON EXPERIMENTAL=ON
addons:
apt:
......
......@@ -52,7 +52,7 @@ namespace limbo {
#endif
template <typename V>
V& convert_vector(const V& v)
V convert_vector(const V& v)
{
return v;
}
......@@ -130,7 +130,7 @@ namespace limbo {
body, joint);
#else
T current_max = init;
for (size_t i = 0; i < num_steps; ++i) {
for (int i = 0; i < num_steps; ++i) {
T v = f(i);
if (comp(v, current_max))
current_max = v;
......
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