aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-07-26 05:33:47 +0200
committerShauren <shauren.trinity@gmail.com>2020-08-03 19:47:19 +0200
commitac37ca040be8f5beaad4e94a613534fa643c04c9 (patch)
treeb0cf62f0af9bfca7f15096b8bc3318ba01f0caee
parent287e18a57c3bf4cda7dbd03fd19cb5eb85e56eb7 (diff)
how does VC++ never catch these? 5e36bf7 follow-up
(No more witty one-liners. Let me go to bed please.) (cherry picked from commit 35411e5ed99584c7061a5feede8cb9b8d71c9b68)
-rw-r--r--src/common/Cryptography/BigNumber.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Cryptography/BigNumber.h b/src/common/Cryptography/BigNumber.h
index 66ea0e53b76..509a63b6fe9 100644
--- a/src/common/Cryptography/BigNumber.h
+++ b/src/common/Cryptography/BigNumber.h
@@ -42,7 +42,7 @@ class TC_COMMON_API BigNumber
void SetQword(uint64);
void SetBinary(uint8 const* bytes, int32 len, bool littleEndian = true);
template <typename Container>
- auto SetBinary(Container const& c, bool littleEndian = true) -> std::enable_if_t<!std::is_pointer_v<Container>> { SetBinary(advstd::data(c), advstd::size(c), littleEndian); }
+ auto SetBinary(Container const& c, bool littleEndian = true) -> std::enable_if_t<!std::is_pointer_v<std::decay_t<Container>>> { SetBinary(advstd::data(c), advstd::size(c), littleEndian); }
bool SetHexStr(char const* str);
bool SetHexStr(std::string const& str) { return SetHexStr(str.c_str()); }