From 3324f6494c021e3dc69cd76ace5ff25a52e4bcce Mon Sep 17 00:00:00 2001 From: Nicolay Korslund Date: Thu, 19 Aug 2010 15:42:00 +0200 Subject: [PATCH] Added weak_ptr typedef to Sound (WSoundPtr), since this is commonly used --- sound/output.hpp | 1 + tools/shared_ptr.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/output.hpp b/sound/output.hpp index a9012b958..9bbdebb2c 100644 --- a/sound/output.hpp +++ b/sound/output.hpp @@ -26,6 +26,7 @@ namespace Sound { */ class Sound; typedef boost::shared_ptr SoundPtr; +typedef boost::weak_ptr WSoundPtr; class Sound { diff --git a/tools/shared_ptr.hpp b/tools/shared_ptr.hpp index da0b399bd..3d073fc24 100644 --- a/tools/shared_ptr.hpp +++ b/tools/shared_ptr.hpp @@ -1,3 +1,3 @@ // This file should include whatever it needs to define the boost/tr1 -// shared_ptr<> template. +// shared_ptr<> and weak_ptr<> templates. #include