mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Bump project requirement to C++17
This commit is contained in:
parent
d908227619
commit
ec420f6617
19 changed files with 101 additions and 139 deletions
|
@ -291,9 +291,8 @@ namespace
|
|||
LowerLimited<T> lowerLimited(T limit, T ret) { return LowerLimited<T>(limit, ret); }
|
||||
|
||||
template <typename T>
|
||||
std::function<T (const T&)> clampValue(const T lower, const T upper)
|
||||
auto clampValue(const T lower, const T upper)
|
||||
{
|
||||
// TODO: change return type to `auto` when using C++17
|
||||
return [lower, upper](const T value) -> T
|
||||
{
|
||||
if (value < lower)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue