diff --git a/include/fmt/enum.h b/include/fmt/enum.h index ad863a7f..ad3a27cd 100644 --- a/include/fmt/enum.h +++ b/include/fmt/enum.h @@ -163,7 +163,8 @@ inline constexpr auto identifier_map = make_identifier_map(); // Returns the identifier of the first enumerator of E equal to value or an // empty string view if there is no such enumerator. -template constexpr auto identifier_of(E value) -> std::string_view { +template +constexpr auto identifier_of(E value) -> std::string_view { constexpr size_t table_size = identifier_table_size(); if constexpr (table_size != 0) { // Values outside of the table wrap around and are rejected by the check.