diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-01-17 18:38:46 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-01-17 18:38:46 +0100 |
commit | a43beb3e063421957b8b99095bb1a3e44268662c (patch) | |
tree | 3a404f6acf06f3a250d54038399c2cd0c40a304f /src/common/Cryptography/CryptoHash.h | |
parent | 5ea4b26f7a32880834419fc3997f8b7908d30508 (diff) |
Core/Misc: Remove return type std::enable_if based SFINAE
Diffstat (limited to 'src/common/Cryptography/CryptoHash.h')
-rw-r--r-- | src/common/Cryptography/CryptoHash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Cryptography/CryptoHash.h b/src/common/Cryptography/CryptoHash.h index 34b299c1d4f..060dbcd0f4f 100644 --- a/src/common/Cryptography/CryptoHash.h +++ b/src/common/Cryptography/CryptoHash.h @@ -54,8 +54,8 @@ namespace Trinity::Impl return hash.GetDigest(); } - template <typename... Ts> - static auto GetDigestOf(Ts&&... pack) -> std::enable_if_t<std::conjunction_v<std::negation<std::is_integral<Ts>>...>, Digest> + template <typename... Ts, std::enable_if_t<std::conjunction_v<std::negation<std::is_integral<Ts>>...>, int32> = 0> + static Digest GetDigestOf(Ts&&... pack) { GenericHash hash; (hash.UpdateData(std::forward<Ts>(pack)), ...); |