mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Zhuk <dz...@twopensource.com>
Subject Review Request 60002: Added ENUM_TEMPLATE_PARAMS preprocessor macro.
Date Mon, 12 Jun 2017 14:53:55 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60002/
-----------------------------------------------------------

Review request for mesos, haosdent huang and Michael Park.


Repository: mesos


Description
-------

Added ENUM_TEMPLATE_PARAMS preprocessor macro.

This allows using templates to generate parameters lists, for example:
#define MOVE_TEMPLATE(Z, N, DATA) std::move(DATA ## N)

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


Diffs
-----

  3rdparty/stout/include/stout/preprocessor.hpp 48d63318712d454b118db64af11c694da92bca6a 


Diff: https://reviews.apache.org/r/60002/diff/1/


Testing
-------


Thanks,

Dmitry Zhuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message