Skip to content

Commit

Permalink
Fix missing template parameters (#151)
Browse files Browse the repository at this point in the history
Fix missing template parameters in MaybeDo. The latest version of clang
throws an error without this fix.

Fixes #150
  • Loading branch information
BenjaminLawson authored Jul 2, 2024
1 parent 457234d commit 61e9a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/cpp/emboss_arithmetic.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ template <typename IntermediateT, typename ResultT, typename OperatorT,
typename... ArgsT>
inline constexpr Maybe<ResultT> MaybeDo(Maybe<ArgsT>... args) {
return AllKnown(args...)
? Maybe<ResultT>(static_cast<ResultT>(OperatorT::template Do(
? Maybe<ResultT>(static_cast<ResultT>(OperatorT::template Do<>(
static_cast<IntermediateT>(args.ValueOrDefault())...)))
: Maybe<ResultT>();
}
Expand Down

0 comments on commit 61e9a22

Please sign in to comment.