> I was looking through base/refcnt.hh the other day, and I noticed for
> the == and != operators that take a regular pointer on the left side and
> a reference counting pointer on the other, they use a const T & instead
> of a const T *. Is that a mistake? Also, I tried to compare a T * and a
> reference counting pointer to T (T * on the right, I think) and gcc
> couldn't figure out what operator to use. Somebody might want to look at
> that if they have a chance.

The one that's a const T & is probably just a typo.  You'll notice
that the other one is a const T *.  Another issue with those operators
is that they probably should be inline.  Should be easy enough to
create a unit test for them if you're so inclined.

  Nate
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to