1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-07 06:54:40 +00:00

refactor: work around C3779 error in MSVC 14.37.32822 (#6197)

This commit is contained in:
Charles Kerr 2023-11-02 23:18:11 -05:00 committed by GitHub
parent 7d1a32c471
commit a6c5dea40c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ public:
{ {
return item.first == key; return item.first == key;
}; };
return std::find_if(begin(), end(), predicate); return std::find_if(std::begin(vec_), std::end(vec_), predicate);
} }
[[nodiscard]] TR_CONSTEXPR20 auto find(tr_quark const key) const noexcept [[nodiscard]] TR_CONSTEXPR20 auto find(tr_quark const key) const noexcept
@ -98,7 +98,7 @@ public:
{ {
return item.first == key; return item.first == key;
}; };
return std::find_if(cbegin(), cend(), predicate); return std::find_if(std::cbegin(vec_), std::cend(vec_), predicate);
} }
[[nodiscard]] TR_CONSTEXPR20 auto size() const noexcept [[nodiscard]] TR_CONSTEXPR20 auto size() const noexcept