Skip to content

Commit

Permalink
Make the use of the hashable base C++17 compliant (foonathan#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP authored and foonathan committed Apr 6, 2018
1 parent 5275797 commit 384b3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/type_safe/strong_typedef.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ namespace type_safe
/// Inherit from it in the `std::hash<StrongTypedef>` specialization to make
/// it hashable like the underlying type. See example/strong_typedef.cpp.
template <class StrongTypedef>
struct hashable
struct hashable : std::hash<type_safe::underlying_type<StrongTypedef>>
{
using underlying_type = type_safe::underlying_type<StrongTypedef>;
using underlying_hash = std::hash<underlying_type>;
Expand Down

0 comments on commit 384b3e8

Please sign in to comment.