summaryrefslogtreecommitdiff
path: root/src/sptr.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-11-24 10:40:34 +0000
committerMike Buland <eichlan@xagasoft.com>2006-11-24 10:40:34 +0000
commite19acafd485a1c6a027bc967945d914fa5ed38b9 (patch)
treea9651e0065a758d0cfabbef3082c27440309a94f /src/sptr.cpp
parent708d358460724d37e671e5f2a95353010135b0db (diff)
downloadlibbu++-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 'src/sptr.cpp')
-rw-r--r--src/sptr.cpp1
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"