Skip to content

Commit

Permalink
enum_utils: template<class> vs template<typename> consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Jun 7, 2023
1 parent 5111171 commit 34b6522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions substrate/enum_utils
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace substrate
return foundFlags;
}

template<class map_t, class value_t> std::string
template<typename map_t, typename value_t> std::string
enum_name(const map_t &map, const value_t &value) noexcept
{
const auto item
Expand All @@ -88,7 +88,7 @@ namespace substrate
return item != std::end(map) ? item->name() : "UNKNOWN";
}

template<class map_t> typename map_t::value_type::value_type
template<typename map_t> typename map_t::value_type::value_type
enum_value(const map_t &map, const std::string &name) noexcept
{
const auto item
Expand Down

0 comments on commit 34b6522

Please sign in to comment.