Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-04-10 | Updated SPtr to (hopefully) handle null values and assignments well, and you | Mike Buland | |
should be able to compare them to pointers of the same type (and nulls?). | |||
2007-04-10 | David had it half right...to make it work like something that's actually a const | Mike 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-10 | david - 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-09 | The SPtr is castable now. just say SPtrCast<TypeToCastTo>( ASPtr ); | Mike Buland | |
2007-04-03 | Hey, it's nicer with const-ness. | Mike Buland | |
2007-03-02 | Removed annoying debugging from SPtr | Mike Buland | |
2007-03-02 | Removed debugging from the Hash | Mike Buland | |
2006-11-29 | Fixed a small issue in the sptr | Mike Buland | |
2006-11-24 | Fixed size bug. | Mike Buland | |
2006-11-24 | Updates to the smart-pointer. | Mike Buland | |
2006-11-24 | Added a simple smart-pointer. It deletes what's in it automatically and does | Mike Buland | |
ref-counting. You just have to be careful to not hand it an array... |