> On Aug. 6, 2018, 2:27 p.m., Benjamin Mahler wrote: > > src/tests/resources_tests.cpp > > Line 1069 (original), 1136 (patched) > > <https://reviews.apache.org/r/68242/diff/1/?file=2069150#file2069150line1136> > > > > Is it possible to instead augment any existing tests of addition (e.g. > > this one) to also do rvalue addition? It should be pretty easy? > > > > E.g. here we could have r2 use += of rvalues, and have different sums > > as well: > > > > ``` > > Resources sum1 = r1 + r2; > > Resources sum2 = Resources(r1) + r2; > > Resources sum3 = r1 + Resources(r2); > > Resources sum4 = Resources(r1) + Resources(r2); > > ```
Done. - Meng ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68242/#review206912 ----------------------------------------------------------- On Aug. 6, 2018, 4:30 p.m., Meng Zhu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/68242/ > ----------------------------------------------------------- > > (Updated Aug. 6, 2018, 4:30 p.m.) > > > Review request for mesos and Benjamin Mahler. > > > Bugs: MESOS-9110 > https://issues.apache.org/jira/browse/MESOS-9110 > > > Repository: mesos > > > Description > ------- > > See summary > > > Diffs > ----- > > src/tests/resources_tests.cpp 9475b6ea014434b8d9c7a5c1ba793cd78b10536b > > > Diff: https://reviews.apache.org/r/68242/diff/2/ > > > Testing > ------- > > make check > > > Thanks, > > Meng Zhu > >
