Skip to content
Snippets Groups Projects
Commit bd29de1a authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'cm-optional-warning'


b7d4ee23 cm::optional: Fix `-Wunused-parameter` warnings in comparison operators

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarKyle Edwards <kyle.edwards@kitware.com>
Merge-request: !5739
parents 9792c7df b7d4ee23
No related branches found
No related tags found
No related merge requests found
......@@ -313,7 +313,7 @@ bool operator!=(const optional<T>& opt, nullopt_t) noexcept
}
template <typename T>
bool operator<(const optional<T>& opt, nullopt_t) noexcept
bool operator<(const optional<T>& /*opt*/, nullopt_t) noexcept
{
return false;
}
......@@ -331,7 +331,7 @@ bool operator>(const optional<T>& opt, nullopt_t) noexcept
}
template <typename T>
bool operator>=(const optional<T>& opt, nullopt_t) noexcept
bool operator>=(const optional<T>& /*opt*/, nullopt_t) noexcept
{
return true;
}
......@@ -355,13 +355,13 @@ bool operator<(nullopt_t, const optional<T>& opt) noexcept
}
template <typename T>
bool operator<=(nullopt_t, const optional<T>& opt) noexcept
bool operator<=(nullopt_t, const optional<T>& /*opt*/) noexcept
{
return true;
}
template <typename T>
bool operator>(nullopt_t, const optional<T>& opt) noexcept
bool operator>(nullopt_t, const optional<T>& /*opt*/) noexcept
{
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment