From 7e036ab2da0c8cad3291951f5d57a08722c62dbc Mon Sep 17 00:00:00 2001 From: AleksejMelman <52255577+AleksejMelman@users.noreply.github.com> Date: Tue, 9 Feb 2021 13:30:37 +0100 Subject: [PATCH] Fixes compilation error of lite-client on windows Fixes compilation error: error C2664: 'std::pair std::make_pair(_Ty1 &&,_Ty2 &&) noexcept ()': cannot convert argument 1 from 'const td::uint64' to '_Ty1 &&' make_pair() has been changed in VS2012 to support a new C++11 feature called move semantics and I suspect that explicitly specifying the types for make_pair() is getting in the way. The fix should be safe for linux distro as well. --- lite-client/lite-client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite-client/lite-client.cpp b/lite-client/lite-client.cpp index bf30e1e8..1f438978 100644 --- a/lite-client/lite-client.cpp +++ b/lite-client/lite-client.cpp @@ -3461,7 +3461,7 @@ bool TestNode::ValidatorLoadInfo::store_record(const td::Bits256& key, const blo if (it == vset_map.end()) { return false; } - created.at(it->second) = std::make_pair(mc_cnt.total, shard_cnt.total); + created.at(it->second) = std::make_pair(mc_cnt.total, shard_cnt.total); return true; }