Revise comments about C++14

This commit is contained in:
Chocobo1 2019-02-04 13:09:21 +08:00
parent 6d29a3af60
commit 364a837dbd
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
3 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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}
{

View file

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