Skip to content

Commit

Permalink
old version llvm(clang) won't work on duplicated name type arg
Browse files Browse the repository at this point in the history
  • Loading branch information
hit9 committed Sep 13, 2024
1 parent c2e025d commit 4be2064
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Source/bt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1340,25 +1340,25 @@ namespace bt
}

template <typename D>
template <TCondition Condition, typename... ConditionArgs>
template <TCondition TCondition, typename... ConditionArgs>
auto& Builder<D>::Not(ConditionArgs... args)
{
return C<InvertNode>("Not", Make<Condition>(false, std::forward<ConditionArgs>(args)...));
return C<InvertNode>("Not", Make<TCondition>(false, std::forward<ConditionArgs>(args)...));
}

template <typename D>
template <TCondition Condition, typename... ConditionArgs>
template <TCondition TCondition, typename... ConditionArgs>
auto& Builder<D>::If(ConditionArgs&&... args)
{
auto condition = Make<Condition>(false, std::forward<ConditionArgs>(args)...);
auto condition = Make<TCondition>(false, std::forward<ConditionArgs>(args)...);
return C<ConditionalRunNode>(std::move(condition), "If");
}

template <typename D>
template <TCondition Condition, typename... ConditionArgs>
template <TCondition TCondition, typename... ConditionArgs>
auto& Builder<D>::Case(ConditionArgs&&... args)
{
auto condition = Make<Condition>(false, std::forward<ConditionArgs>(args)...);
auto condition = Make<TCondition>(false, std::forward<ConditionArgs>(args)...);
return C<ConditionalRunNode>(std::move(condition), "Case");
}

Expand Down Expand Up @@ -1400,7 +1400,7 @@ namespace bt
if (!skipActtach)
OnNodeAttach<T>(*p, root);
return p;
};
}

} // namespace bt

Expand Down

0 comments on commit 4be2064

Please sign in to comment.