Skip to content

Commit

Permalink
adding overload to fix compilation for g++ 4.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 19, 2016
1 parent a5b7b30 commit 3a62f97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/parallel.hpp
Expand Up @@ -36,6 +36,14 @@ run_async(F&& f, Ts&&... params)
std::forward<Ts>(params)...);
}

// overload for g++ <= 4.7.4
template<typename F, typename Ts>
inline std::future<typename std::result_of<F(Ts)>::type>
run_async(F f, Ts params)
{
return std::async(std::launch::async, f, params);
}

} // namespace flexiblesusy

#endif
Expand Down

0 comments on commit 3a62f97

Please sign in to comment.