mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mp...@apache.org
Subject [2/2] mesos git commit: Removed `constexpr`-ness from `cpp17::invoke`.
Date Tue, 05 Dec 2017 18:07:28 GMT
Removed `constexpr`-ness from `cpp17::invoke`.

`std::invoke` is not marked `constexpr`.

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


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

Branch: refs/heads/master
Commit: ececa115966067551e00098f973f0104a0782730
Parents: 59329cb
Author: Michael Park <mpark@apache.org>
Authored: Tue Dec 5 09:57:51 2017 -0800
Committer: Michael Park <mpark@apache.org>
Committed: Tue Dec 5 09:57:51 2017 -0800

----------------------------------------------------------------------
 3rdparty/stout/include/stout/cpp17.hpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/ececa115/3rdparty/stout/include/stout/cpp17.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/cpp17.hpp b/3rdparty/stout/include/stout/cpp17.hpp
index 3c4cc53..6c36445 100644
--- a/3rdparty/stout/include/stout/cpp17.hpp
+++ b/3rdparty/stout/include/stout/cpp17.hpp
@@ -38,23 +38,23 @@ using std::invoke;
 // in compilation failure.
 
 template <typename F, typename... As>
-constexpr auto invoke(F&& f, As&&... as)
+auto invoke(F&& f, As&&... as)
   RETURN(std::forward<F>(f)(std::forward<As>(as)...))
 
 template <typename B, typename T, typename D>
-constexpr auto invoke(T B::*pmv, D&& d)
+auto invoke(T B::*pmv, D&& d)
   RETURN(std::forward<D>(d).*pmv)
 
 template <typename Pmv, typename Ptr>
-constexpr auto invoke(Pmv pmv, Ptr&& ptr)
+auto invoke(Pmv pmv, Ptr&& ptr)
   RETURN((*std::forward<Ptr>(ptr)).*pmv)
 
 template <typename B, typename T, typename D, typename... As>
-constexpr auto invoke(T B::*pmf, D&& d, As&&... as)
+auto invoke(T B::*pmf, D&& d, As&&... as)
   RETURN((std::forward<D>(d).*pmf)(std::forward<As>(as)...))
 
 template <typename Pmf, typename Ptr, typename... As>
-constexpr auto invoke(Pmf pmf, Ptr&& ptr, As&&... as)
+auto invoke(Pmf pmf, Ptr&& ptr, As&&... as)
   RETURN(((*std::forward<Ptr>(ptr)).*pmf)(std::forward<As>(as)...))
 
 #undef RETURN


Mime
View raw message