refcnt: Change things around so that we handle constness correctly.
authorNathan Binkert <nate@binkert.org>
Sun, 23 Jan 2011 05:48:06 +0000 (21:48 -0800)
committerNathan Binkert <nate@binkert.org>
Sun, 23 Jan 2011 05:48:06 +0000 (21:48 -0800)
commit048b1e5843494be33b08cd42a3f0bb16e5d320cc
treef88d2c82dbe5b63b735bc86ff6c06353f74ae0bc
parent0e64e1be0fc1ec7586dfb2171585608f713bfc4e
refcnt: Change things around so that we handle constness correctly.
To use a non const pointer:
typedef RefCountingPtr<Foo> FooPtr;

To use a const pointer:
typedef RefCountingPtr<const Foo> ConstFooPtr;
src/base/refcnt.hh