summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-14 20:31:01 +0000
committerDavid Robillard <d@drobilla.net>2009-11-14 20:31:01 +0000
commit8eeab7b122dceafd494a40750fdc33a036c604ce (patch)
tree782053ca402db32a03554247ab44db2b7f326aa6 /raul
parente09cc96af563b375d45a545eb1d7afe459042271 (diff)
downloadraul-8eeab7b122dceafd494a40750fdc33a036c604ce.tar.gz
raul-8eeab7b122dceafd494a40750fdc33a036c604ce.tar.bz2
raul-8eeab7b122dceafd494a40750fdc33a036c604ce.zip
Add NullDeleter convenience template.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2259 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul')
-rw-r--r--raul/SharedPtr.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/raul/SharedPtr.hpp b/raul/SharedPtr.hpp
index adc79ae..1723032 100644
--- a/raul/SharedPtr.hpp
+++ b/raul/SharedPtr.hpp
@@ -56,6 +56,8 @@ namespace boost {
#error "This is VERY slow. Please report your platform to dave@drobilla.net"
#endif
+template <typename T> void NullDeleter(T* ptr) {}
+
#define SharedPtr boost::shared_ptr
#define PtrCast boost::dynamic_pointer_cast