diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-11-24 10:40:34 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-11-24 10:40:34 +0000 |
commit | e19acafd485a1c6a027bc967945d914fa5ed38b9 (patch) | |
tree | a9651e0065a758d0cfabbef3082c27440309a94f /src/sptr.cpp | |
parent | 708d358460724d37e671e5f2a95353010135b0db (diff) | |
download | libbu++-e19acafd485a1c6a027bc967945d914fa5ed38b9.tar.gz libbu++-e19acafd485a1c6a027bc967945d914fa5ed38b9.tar.bz2 libbu++-e19acafd485a1c6a027bc967945d914fa5ed38b9.tar.xz libbu++-e19acafd485a1c6a027bc967945d914fa5ed38b9.zip |
Added a simple smart-pointer. It deletes what's in it automatically and does
ref-counting. You just have to be careful to not hand it an array...
Diffstat (limited to '')
-rw-r--r-- | src/sptr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sptr.cpp b/src/sptr.cpp new file mode 100644 index 0000000..7f5e894 --- /dev/null +++ b/src/sptr.cpp | |||
@@ -0,0 +1 @@ | |||
#include "sptr.h" | |||