diff options
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/chip.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ice40/chip.h b/ice40/chip.h index 9d647756..d3eb7c70 100644 --- a/ice40/chip.h +++ b/ice40/chip.h @@ -743,4 +743,15 @@ struct Chip NEXTPNR_NAMESPACE_END +namespace std { +template <> struct hash<NEXTPNR_NAMESPACE_PREFIX BelType> +{ + std::size_t operator()(NEXTPNR_NAMESPACE_PREFIX BelType bt) const + noexcept + { + return std::hash<int>()(int(bt)); + } +}; +} // namespace std + #endif |