Skip to content

Commit

Permalink
fix for gcc 4.8.4
Browse files Browse the repository at this point in the history
apparently some cases the lambda with auto arg is not supported :(
  • Loading branch information
vigsterkr committed Jan 30, 2018
1 parent 532a8d4 commit 3eda6e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shogun/base/SGObject.cpp
Expand Up @@ -944,7 +944,8 @@ std::vector<std::string> CSGObject::parameter_names() const
{
std::vector<std::string> result;
std::transform(self->map.cbegin(), self->map.cend(), std::back_inserter(result),
[](const auto& each) -> std::string { return each.first.name(); });
// FIXME: const auto& each fails on gcc 4.8.4
[](const std::pair<BaseTag, AnyParameter>& each) -> std::string { return each.first.name(); });
return result;
}

Expand Down

0 comments on commit 3eda6e4

Please sign in to comment.