//===----------------------------------------------------------------------===// // DuckDB // // duckdb/common/enum_class_hash.hpp // // //===----------------------------------------------------------------------===// #pragma once #include namespace duckdb { /* For compatibility with older C++ STL, an explicit hash class is required for enums with C++ sets and maps */ struct EnumClassHash { template std::size_t operator()(T t) const { return static_cast(t); } }; } // namespace duckdb