aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-07-26 05:33:47 +0200
committerTreeston <treeston.mmoc@gmail.com>2020-07-26 05:33:47 +0200
commit35411e5ed99584c7061a5feede8cb9b8d71c9b68 (patch)
treeebf3c4e0a8bcb2b4df0ff1d672c41f6ae7b1ffeb /src
parent4f570e5d08d0338ac16aace81865c04b0605b0a5 (diff)
how does VC++ never catch these? 5e36bf7 follow-up
(No more witty one-liners. Let me go to bed please.)
Diffstat (limited to 'src')
-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 1152b468ac8..f269a813075 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(std::data(c), std::size(c), littleEndian); }
+ auto SetBinary(Container const& c, bool littleEndian = true) -> std::enable_if_t<!std::is_pointer_v<std::decay_t<Container>>> { SetBinary(std::data(c), std::size(c), littleEndian); }
bool SetHexStr(char const* str);
bool SetHexStr(std::string const& str) { return SetHexStr(str.c_str()); }