Re: Review Request 60326: Added `vector` explicit cast to `Argv`.

2017-07-10 Thread Joseph Wu

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



I'm going to rewrite this a bit because of the below:


3rdparty/stout/include/stout/os/raw/argv.hpp
Lines 42-47 (original), 42-48 (patched)


Considering how there's already a conversion from `Iterable` to 
`std::vector`, this function can be cleaned up a bit.

We can convert from `Iterable` to `std::vector` instead.  And 
the `char** argv` can point to the C-strings of that vector.


- Joseph Wu


On June 21, 2017, 3:11 p.m., Andrew Schwartzmeyer wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60326/
> ---
> 
> (Updated June 21, 2017, 3:11 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Jeff Coffler, John Kordich, 
> Joseph Wu, Li Li, and Michael Park.
> 
> 
> Bugs: MESOS-6817, MESOS-7371 and MESOS-7407
> https://issues.apache.org/jira/browse/MESOS-6817
> https://issues.apache.org/jira/browse/MESOS-7371
> https://issues.apache.org/jira/browse/MESOS-7407
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> This is needed for implementations that expect a `vector`
> instead of a `char **`.
> 
> 
> Diffs
> -
> 
>   3rdparty/stout/include/stout/os/raw/argv.hpp 
> 58e5ee2a0ae6a68b3221124f196f0e650c32a8c0 
> 
> 
> Diff: https://reviews.apache.org/r/60326/diff/1/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Andrew Schwartzmeyer
> 
>



Review Request 60326: Added `vector` explicit cast to `Argv`.

2017-06-21 Thread Andrew Schwartzmeyer

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

Review request for mesos, Alexander Rukletsov, Jeff Coffler, John Kordich, 
Joseph Wu, Li Li, and Michael Park.


Bugs: MESOS-6817, MESOS-7371 and MESOS-7407
https://issues.apache.org/jira/browse/MESOS-6817
https://issues.apache.org/jira/browse/MESOS-7371
https://issues.apache.org/jira/browse/MESOS-7407


Repository: mesos


Description
---

This is needed for implementations that expect a `vector`
instead of a `char **`.


Diffs
-

  3rdparty/stout/include/stout/os/raw/argv.hpp 
58e5ee2a0ae6a68b3221124f196f0e650c32a8c0 


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


Testing
---


Thanks,

Andrew Schwartzmeyer