Commit b90ccd38 authored by Dominik Charousset's avatar Dominik Charousset

Fix "no match for ternary operator" error on GCC

parent 70f4dcad
...@@ -770,9 +770,11 @@ class utim_impl : public uniform_type_info_map { ...@@ -770,9 +770,11 @@ class utim_impl : public uniform_type_info_map {
}; };
// both containers are sorted // both containers are sorted
auto i = std::lower_bound(c.begin(), e, name, cmp); auto i = std::lower_bound(c.begin(), e, name, cmp);
return (i != e && name == (*i)->name()) ? *i : nullptr; if (i != e && name == (*i)->name()) {
return *i;
}
return nullptr;
} }
}; };
} // namespace <anonymous> } // namespace <anonymous>
......
Markdown is supported
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