Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mossmaurice committed Oct 25, 2022
1 parent b63a604 commit 8b8e441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iceoryx_hoofs/include/iceoryx_hoofs/internal/cxx/variant.inl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ inline constexpr bool holds_alternative(const variant<Types...>& variant) noexce
}

template <typename... Types>
constexpr bool operator==(const variant<Types...>& lhs, const variant<Types...>& rhs)
inline constexpr bool operator==(const variant<Types...>& lhs, const variant<Types...>& rhs)
{
if ((lhs.index() == INVALID_VARIANT_INDEX) && (rhs.index() == INVALID_VARIANT_INDEX))
{
Expand All @@ -313,7 +313,7 @@ constexpr bool operator==(const variant<Types...>& lhs, const variant<Types...>&
}

template <typename... Types>
constexpr bool operator!=(const variant<Types...>& lhs, const variant<Types...>& rhs)
inline constexpr bool operator!=(const variant<Types...>& lhs, const variant<Types...>& rhs)
{
return !(lhs == rhs);
}
Expand Down

0 comments on commit 8b8e441

Please sign in to comment.