summaryrefslogtreecommitdiff
path: root/src/CommonAPI/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommonAPI/types.h')
-rw-r--r--src/CommonAPI/types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/CommonAPI/types.h b/src/CommonAPI/types.h
index ffc338c..b81cf5d 100644
--- a/src/CommonAPI/types.h
+++ b/src/CommonAPI/types.h
@@ -83,6 +83,15 @@ struct SelectiveBroadcastSubscriptionResult {
};
+template<typename _EnumType>
+class EnumHasher {
+public:
+ inline size_t operator()(const _EnumType& testEnum) const {
+ return static_cast<int32_t>(testEnum);
+ }
+
+};
+
} // namespace CommonAPI
#endif // COMMONAPI_TYPES_H_