aboutsummaryrefslogtreecommitdiff
path: root/src/sptr.h (follow)
AgeCommit message (Collapse)Author
2007-04-10Updated SPtr to (hopefully) handle null values and assignments well, and youMike Buland
should be able to compare them to pointers of the same type (and nulls?).
2007-04-10David had it half right...to make it work like something that's actually a constMike Buland
pointer he's right, the pointer needs to be rebindable, but for a: const int *p; p can be changed, but not what p points to. I've added the rest of the operators in sptr that should accomplish this, and a test that actually tests the correctness of SPtr used this way against a normal pointer, both tests check out 100%, hopefully this dosen't break anything, but if it should act like a pointer, this is how to do it. (I totally forgot that const pointers were rebindable).
2007-04-10david - wow... that seems a little kludgy... see the constsptr test for ↵David
details, but basically i had to make the members of sptr mutable to get this to work the way it seems it should... maybe i'm missing something...
2007-04-09The SPtr is castable now. just say SPtrCast<TypeToCastTo>( ASPtr );Mike Buland
2007-04-03Hey, it's nicer with const-ness.Mike Buland
2007-03-02Removed annoying debugging from SPtrMike Buland
2007-03-02Removed debugging from the HashMike Buland
2006-11-29Fixed a small issue in the sptrMike Buland
2006-11-24Fixed size bug.Mike Buland
2006-11-24Updates to the smart-pointer.Mike Buland
2006-11-24Added a simple smart-pointer. It deletes what's in it automatically and doesMike Buland
ref-counting. You just have to be careful to not hand it an array...