> On March 21, 2012, 10:33 p.m., Steve Reinhardt wrote: > > This is fine, but it would be nice if there were a way to do it without so > > much code duplication.
The only way of avoiding duplication, at least as far as I'm aware, is to use const_cast, which I'd like to avoid. I prefer the duplication to const_cast, but will adapt if anyone disagrees. - Andreas ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://reviews.gem5.org/r/1111/#review2360 ----------------------------------------------------------- On March 21, 2012, 10:06 a.m., Andreas Hansson wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://reviews.gem5.org/r/1111/ > ----------------------------------------------------------- > > (Updated March 21, 2012, 10:06 a.m.) > > > Review request for Default. > > > Description > ------- > > range_map: Enable const find and iteration > > This patch adds const access functions to the range_map to enable its use > in a const context, similar to the STL container classes. > > > Diffs > ----- > > src/base/range_map.hh c739a3a829f5 > > Diff: http://reviews.gem5.org/r/1111/diff/ > > > Testing > ------- > > util/regress all passing (disregarding t1000 and eio) > > > Thanks, > > Andreas Hansson > > _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
