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:
parent
7d1a32c471
commit
a6c5dea40c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue