Re: Review Request 63629: Added partial function application implementation.

2017-11-30 Thread Dmitry Zhuk

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

(Updated Nov. 30, 2017, 8:40 p.m.)


Review request for mesos, Benjamin Mahler and Michael Park.


Changes
---

Switched to cpp14.hpp.


Bugs: MESOS-6972
https://issues.apache.org/jira/browse/MESOS-6972


Repository: mesos


Description
---

`lambda::partial` performs partial function application,
similar to `std::bind`. However, unlike `std::bind`, it supports
functors accepting rvalue reference arguments. In this case `operator()`
must be called on `std::move`d partial.


Diffs (updated)
-

  3rdparty/stout/include/stout/lambda.hpp 
a61d97b69e7eebd057c94148d39c6e1fc3066017 
  3rdparty/stout/tests/lambda_tests.cpp 
ad8c2efddb6b64184670d0cfb33188ef843351ab 


Diff: https://reviews.apache.org/r/63629/diff/4/

Changes: https://reviews.apache.org/r/63629/diff/3-4/


Testing
---

make check


Thanks,

Dmitry Zhuk



Re: Review Request 63629: Added partial function application implementation.

2017-11-22 Thread Dmitry Zhuk

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

(Updated Nov. 22, 2017, 2:09 p.m.)


Review request for mesos, Benjamin Mahler and Michael Park.


Changes
---

Fixed code style.


Bugs: MESOS-6972
https://issues.apache.org/jira/browse/MESOS-6972


Repository: mesos


Description
---

`lambda::partial` performs partial function application,
similar to `std::bind`. However, unlike `std::bind`, it supports
functors accepting rvalue reference arguments. In this case `operator()`
must be called on `std::move`d partial.


Diffs (updated)
-

  3rdparty/stout/include/stout/lambda.hpp 
a61d97b69e7eebd057c94148d39c6e1fc3066017 
  3rdparty/stout/tests/lambda_tests.cpp 
ad8c2efddb6b64184670d0cfb33188ef843351ab 


Diff: https://reviews.apache.org/r/63629/diff/2/

Changes: https://reviews.apache.org/r/63629/diff/1-2/


Testing
---

make check


Thanks,

Dmitry Zhuk



Review Request 63629: Added partial function application implementation.

2017-11-07 Thread Dmitry Zhuk

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

Review request for mesos, Benjamin Mahler and Michael Park.


Bugs: MESOS-6972
https://issues.apache.org/jira/browse/MESOS-6972


Repository: mesos


Description
---

`lambda::partial` performs partial function application,
similar to `std::bind`. However, unlike `std::bind`, it supports
functors accepting rvalue reference arguments. In this case `operator()`
must be called on `std::move`d partial.


Diffs
-

  3rdparty/stout/include/stout/lambda.hpp 
a61d97b69e7eebd057c94148d39c6e1fc3066017 
  3rdparty/stout/tests/lambda_tests.cpp 
ad8c2efddb6b64184670d0cfb33188ef843351ab 


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


Testing
---

make check


Thanks,

Dmitry Zhuk