Skip to content

Commit

Permalink
Attempt to fix linux build error by using normal instantiation for vr…
Browse files Browse the repository at this point in the history
…eduction_monotype ReturnType instead of static_cast.
  • Loading branch information
Ivorforce committed Nov 8, 2024
1 parent 54f7be4 commit 8343164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vatensor/vcompute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ namespace va {

// TODO Some xt functions support passing the output type. That would be FAR better than casting it afterwards as here.
const auto result = OutputType(std::forward<FX>(fx)(args...));
return static_cast<ReturnType>(result);
return ReturnType(result);
}

template<Feature feature, typename PromotionRule, typename ReturnType, typename FX, typename... Args>
Expand Down

0 comments on commit 8343164

Please sign in to comment.