@ -225,7 +225,7 @@ namespace
template <typename T>
std::function<T (const T&)> clampValue(const T lower, const T upper)
{
// TODO: change return type to `auto` when using C++14
// TODO: change return type to `auto` when using C++17
return [lower, upper](const T value) -> T
if (value < lower)
@ -38,7 +38,7 @@ class IndexInterval
public:
using IndexType = Index;
IndexInterval(IndexType first, IndexType last) // add constexpr when using C++14
IndexInterval(IndexType first, IndexType last) // add constexpr when using C++17
: m_first {first}
, m_last {last}
@ -48,7 +48,7 @@ public:
return m_value;
}
TriStateBool &operator=(const TriStateBool &other) = default; // add constexpr when using C++14
TriStateBool &operator=(const TriStateBool &other) = default; // add constexpr when using C++17
constexpr bool operator==(const TriStateBool &other) const