Skip to content

Commit

Permalink
add [[maybe_unused]] to library
Browse files Browse the repository at this point in the history
  • Loading branch information
finger563 committed Jul 14, 2022
1 parent 96ff212 commit 648b5fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ template <typename E>
// Obtains index in enum values from enum value.
// Returns optional with index.
template <typename E>
[[nodiscard]] constexpr auto enum_index(E value) noexcept -> detail::enable_if_t<E, optional<std::size_t>> {
[[nodiscard]] constexpr auto enum_index([[maybe_unused]] E value) noexcept -> detail::enable_if_t<E, optional<std::size_t>> {
using D = std::decay_t<E>;
using U = underlying_type_t<D>;

Expand Down

0 comments on commit 648b5fd

Please sign in to comment.