> On Nov. 27, 2017, 7:24 p.m., Jie Yu wrote: > > include/mesos/type_utils.hpp > > Line 467 (original), 467 (patched) > > <https://reviews.apache.org/r/64000/diff/1/?file=1898982#file1898982line467> > > > > Do you also need to update v1/mesos.cpp? > > Benjamin Bannier wrote: > This makes me wonder whether we should just remove these duplicated > declarations from these mesos-specific headers, and instead move this code > into `stout/hashmap.hpp`. Does that make sense?
I went with above idea; I modified this patch to add a generic stringification of `hashmap` of stringifiable types directly to stout. In the next patch I then remove the existing specializations for `hashmap<string, string>`. - Benjamin ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64000/#review191910 ----------------------------------------------------------- On Nov. 28, 2017, 10:32 p.m., Benjamin Bannier wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/64000/ > ----------------------------------------------------------- > > (Updated Nov. 28, 2017, 10:32 p.m.) > > > Review request for mesos, Alexander Rukletsov and haosdent huang. > > > Repository: mesos > > > Description > ------- > > This patch adds generic stringification for hashmaps of stringifiable > types to stout. Related, but less generic functions are currently > implemented in both 'v1/mesos.hpp' and 'v1/type_utils.hpp'; these > implementations will be removed in a subsequent commit. > > > Diffs > ----- > > 3rdparty/stout/include/stout/hashmap.hpp > faf8002f67c1385234fc18602e3cd6bdf47a3c34 > > > Diff: https://reviews.apache.org/r/64000/diff/2/ > > > Testing > ------- > > `make check` > > > Thanks, > > Benjamin Bannier > >
