Repository: mesos
Updated Branches:
  refs/heads/master d9c90bf1d -> f8e4f11e7


Added `ENUM` preprocessor macro.

This allows using templates to generate parameter lists, for example:

`#define MOVE_TEMPLATE(Z, N, DATA) std::move(DATA ## N)`

Then it can be used as `call(ENUM(2, MOVE_TEMPLATE, p));`
which is expanded as `call(std::move(p1), std::move(p2));`

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


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

Branch: refs/heads/master
Commit: 2ce2a0add3906a4bb569043ca841b2db369e79fa
Parents: d9c90bf
Author: Dmitry Zhuk <dz...@twopensource.com>
Authored: Mon Aug 7 11:00:22 2017 -0700
Committer: Michael Park <mp...@apache.org>
Committed: Tue Aug 8 13:33:06 2017 -0700

----------------------------------------------------------------------
 3rdparty/stout/include/stout/preprocessor.hpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/2ce2a0ad/3rdparty/stout/include/stout/preprocessor.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/preprocessor.hpp 
b/3rdparty/stout/include/stout/preprocessor.hpp
index 48d6331..3152e73 100644
--- a/3rdparty/stout/include/stout/preprocessor.hpp
+++ b/3rdparty/stout/include/stout/preprocessor.hpp
@@ -34,6 +34,7 @@
 #define INTERCEPT BOOST_PP_INTERCEPT
 #define ENUM_PARAMS BOOST_PP_ENUM_PARAMS
 #define ENUM_BINARY_PARAMS BOOST_PP_ENUM_BINARY_PARAMS
+#define ENUM BOOST_PP_ENUM
 #define ENUM_TRAILING_PARAMS BOOST_PP_ENUM_TRAILING_PARAMS
 #define REPEAT BOOST_PP_REPEAT
 #define REPEAT_FROM_TO BOOST_PP_REPEAT_FROM_TO

Reply via email to