Skip to content

Commit

Permalink
Attempt to fix template fold expression
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <methylDragon@gmail.com>
Co-authored-by: methylDragon <methylDragon@gmail.com>
  • Loading branch information
methylDragon committed Dec 19, 2022
1 parent b99ebbb commit 0fd3242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/detail/template_contains.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ inline constexpr bool template_contains_v = template_contains<Args ...>::value;
template<typename T, typename NextT, typename ... Us>
struct template_contains<T, NextT, Us ...>
{
enum { value = std::is_same_v<T, NextT>|| template_contains_v<T, Us ...>};
enum { value = (std::is_same_v<T, NextT>|| template_contains_v<T, Us ...>)};
};

template<typename T>
Expand Down

0 comments on commit 0fd3242

Please sign in to comment.