From 364a837dbdc4555f2f3f745ee9ee921f6b480bca Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 4 Feb 2019 13:09:21 +0800 Subject: [PATCH] Revise comments about C++14 --- src/base/bittorrent/session.cpp | 2 +- src/base/indexrange.h | 2 +- src/base/tristatebool.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index f55c8dd5b..0c8ca050d 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -225,7 +225,7 @@ namespace template std::function 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) diff --git a/src/base/indexrange.h b/src/base/indexrange.h index 0bcff1ae6..a297d76ed 100644 --- a/src/base/indexrange.h +++ b/src/base/indexrange.h @@ -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} { diff --git a/src/base/tristatebool.h b/src/base/tristatebool.h index 269a68c1a..086bf4af4 100644 --- a/src/base/tristatebool.h +++ b/src/base/tristatebool.h @@ -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 {