Skip to content

Commit

Permalink
Attempt to fix the gcc 4.9 problem with the async pack traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Oct 17, 2017
1 parent 8a92eff commit d2ce06b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hpx/util/detail/pack_traversal_async_impl.hpp
Expand Up @@ -138,14 +138,15 @@ namespace util {
/// Calls the visitor with the given element
template <typename T>
auto traverse(T&& value) -> decltype(util::invoke(
visitor(), async_traverse_visit_tag{}, std::forward<T>(value)))
std::declval<Visitor&>(), async_traverse_visit_tag{},
std::forward<T>(value)))
{
return util::invoke(visitor(), async_traverse_visit_tag{},
std::forward<T>(value));
}

/// Calls the visitor with the given element and a continuation
/// which is capable of continuing the asynchrone traversal
/// which is capable of continuing the asynchronous traversal
/// when it's called later.
template <typename T, typename Hierarchy>
void async_continue(T&& value, Hierarchy&& hierarchy)
Expand All @@ -165,7 +166,7 @@ namespace util {
}

/// Calls the visitor with no arguments to signalize that the
/// asynchrnous traversal was finished.
/// asynchronous traversal was finished.
void async_complete()
{
util::invoke(
Expand Down

0 comments on commit d2ce06b

Please sign in to comment.