Browse Source

Revise comments about C++14

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
364a837dbd
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/bittorrent/session.cpp
  2. 2
      src/base/indexrange.h
  3. 2
      src/base/tristatebool.h

2
src/base/bittorrent/session.cpp

@ -225,7 +225,7 @@ namespace @@ -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)

2
src/base/indexrange.h

@ -38,7 +38,7 @@ class IndexInterval @@ -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}
{

2
src/base/tristatebool.h

@ -48,7 +48,7 @@ public: @@ -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
{

Loading…
Cancel
Save