You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ne...@apache.org on 2017/05/12 23:29:16 UTC

mesos git commit: Added missing `constexpr` to Days constructors in stout.

Repository: mesos
Updated Branches:
  refs/heads/master c98f96522 -> 8ca6e6f04


Added missing `constexpr` to Days constructors in stout.

Review: https://reviews.apache.org/r/59243


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8ca6e6f0
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/8ca6e6f0
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/8ca6e6f0

Branch: refs/heads/master
Commit: 8ca6e6f04fa4d5f488fd3e7afbb2c046c6e91d5e
Parents: c98f965
Author: Neil Conway <ne...@gmail.com>
Authored: Fri May 12 13:42:41 2017 -0700
Committer: Neil Conway <ne...@gmail.com>
Committed: Fri May 12 16:29:06 2017 -0700

----------------------------------------------------------------------
 3rdparty/stout/include/stout/duration.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/8ca6e6f0/3rdparty/stout/include/stout/duration.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/duration.hpp b/3rdparty/stout/include/stout/duration.hpp
index 165dd15..138993e 100644
--- a/3rdparty/stout/include/stout/duration.hpp
+++ b/3rdparty/stout/include/stout/duration.hpp
@@ -285,10 +285,10 @@ public:
 class Days : public Duration
 {
 public:
-  explicit Days(int64_t days)
+  explicit constexpr Days(int64_t days)
     : Duration(days, DAYS) {}
 
-  Days(const Duration& d) : Duration(d) {}
+  constexpr Days(const Duration& d) : Duration(d) {}
 
   double value() const { return this->days(); }