You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Joris Van Remoortere <jo...@gmail.com> on 2015/09/08 08:23:21 UTC

Review Request 38171: Stout: Refactored set to use initializer list for variadic constructor.

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

Review request for mesos and Michael Park.


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


Repository: mesos


Description
-------

See summary.


Diffs
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/set.hpp 85466dbb36b3ac545562eafe8041ad79993fdf9f 

Diff: https://reviews.apache.org/r/38171/diff/


Testing
-------


Thanks,

Joris Van Remoortere


Re: Review Request 38171: Stout: Refactored set to use initializer list for variadic constructor.

Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38171/#review110079
-----------------------------------------------------------


I would actually prefer we get rid of this class entirely.

1. I believe the variadic constructor for initialization doesn't give us much value over `std::initializer_list`.
2. This class isn't used at all in the entire codebase except for once instance of it in `src/log/log.cpp` which can simply be removed with:

```
-        Set<UPID>((UPID) replica->pid()))),
+        {static_cast<UPID>(replica->pid())})),
```

since the member being initialized by this expression is `std::set` anyway.
After that, we just need to modify `set_tests.cpp` such that we test the added operators such as `operator|`.

- Michael Park


On Sept. 8, 2015, 6:23 a.m., Joris Van Remoortere wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38171/
> -----------------------------------------------------------
> 
> (Updated Sept. 8, 2015, 6:23 a.m.)
> 
> 
> Review request for mesos and Michael Park.
> 
> 
> Bugs: MESOS-3217
>     https://issues.apache.org/jira/browse/MESOS-3217
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/set.hpp 85466dbb36b3ac545562eafe8041ad79993fdf9f 
> 
> Diff: https://reviews.apache.org/r/38171/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Joris Van Remoortere
> 
>