GetTypeHash existance check for templated type?

Hi. Is there a way to check if a templated type T can be hashed with GetTypeHash ( Like IsHashingSupported::value )?

Hi,

Not in 4.12, but 4.14 adds support for a THasGetTypeHash type trait:

struct FMyHashableType
{
    friend uint32 GetTypeHash(const FMyHashableType& Obj) { ... }
};
struct FMyNonHashableType
{
};

static_assert(THasGetTypeHash<FMyHashableType>::Value, "FMyHashableType must be hashable");
static_assert(!THasGetTypeHash<FMyNonHashableType>::Value, "FMyNonHashableType must not be hashable");

Steve