Bump project requirement to C++17

This commit is contained in:
Chocobo1
2020-12-19 14:52:01 +08:00
committed by sledgehammer999
parent d908227619
commit ec420f6617
19 changed files with 101 additions and 139 deletions

View File

@@ -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)