RefCount: Fix reference counting pointer == and != with a T* on the left.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 3 Jan 2011 20:31:20 +0000 (15:31 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 3 Jan 2011 20:31:20 +0000 (15:31 -0500)
commit1a10ccc5e551857fc3a7c049df99547ccfe3f72b
treed01634f8964a75d310067a365d857284eee7aba5
parent5e25f317125ee8311702831f7b7a99cd19172293
RefCount: Fix reference counting pointer == and != with a T* on the left.

These operators were expecting a const T& instead of a const T*, and were not
being picked up and used by gcc in the right places as a result. Apparently no
one used these operators before. A unit test which exposed these problems,
verified the solution, and checks other basic functionality is on the way.
src/base/refcnt.hh