Skip to content

Commit

Permalink
Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
akleeman committed Mar 27, 2020
1 parent afd3bff commit e67b895
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/albatross/src/indexing/async_apply.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ template <typename ValueType, typename ApplyFunction,
ApplyFunction, ValueType>::value &&
std::is_same<void, ApplyType>::value,
int>::type = 0>
inline void async_apply(const std::vector<ValueType> &xs,
ApplyFunction &&f) {
inline void async_apply(const std::vector<ValueType> &xs, ApplyFunction &&f) {
std::vector<std::future<void>> futures;
for (const auto &x : xs) {
futures.emplace_back(async_safe(f, x));
Expand All @@ -50,8 +49,7 @@ template <typename ValueType, typename ApplyFunction,
ApplyFunction, ValueType>::value &&
!std::is_same<void, ApplyType>::value,
int>::type = 0>
inline auto async_apply(const std::vector<ValueType> &xs,
ApplyFunction &&f) {
inline auto async_apply(const std::vector<ValueType> &xs, ApplyFunction &&f) {
std::vector<std::future<ApplyType>> futures;
for (const auto &x : xs) {
futures.emplace_back(async_safe(f, x));
Expand Down

0 comments on commit e67b895

Please sign in to comment.