Skip to content

Commit

Permalink
DPL: make helper for typeId consteval
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Mar 14, 2024
1 parent 21bfd3b commit 7d28deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Framework/Core/include/Framework/ServiceRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ struct ServiceRegistry {
void throwError(const char* name, int64_t hash, int64_t streamId, int64_t dataprocessorId) const;

public:
using hash_type = decltype(TypeIdHelpers::uniqueId<void>());
using hash_type = decltype(TypeIdHelpers::uniqueId<std::void_t<void>>());
ServiceRegistry();

ServiceRegistry(ServiceRegistry const& other);
Expand Down
2 changes: 1 addition & 1 deletion Framework/Foundation/include/Framework/TypeIdHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ constexpr static std::string_view type_name()

struct TypeIdHelpers {
template <typename T>
constexpr static uint32_t uniqueId()
consteval static uint32_t uniqueId()
{
#ifdef __CLING__
constexpr uint32_t r = crc32(unique_type_id_v<T>.data(), unique_type_id_v<T>.size());
Expand Down

0 comments on commit 7d28deb

Please sign in to comment.