Compiles again under MSW after porting changes for linux

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@186 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-01-29 14:16:57 +00:00
parent 79a90529ac
commit 3a18f787ce
8 changed files with 14 additions and 16 deletions
+3 -2
View File
@@ -105,14 +105,15 @@ inline shared_ptr<T> new_shared7(const A0& a0, const A1& a1, const A2& a2, const
/// Base class for objects wishing to use intrusive_ptrs
class IntrusivePtrBase {
public:
virtual ~IntrusivePtrBase();
inline IntrusivePtrBase() : ref_count(0) {}
virtual ~IntrusivePtrBase() {}
protected:
/// Delete this object
virtual void destroy() {
delete this;
}
private:
volatile AtomicInt ref_count;
AtomicInt ref_count;
friend void intrusive_ptr_add_ref(IntrusivePtrBase*);
friend void intrusive_ptr_release(IntrusivePtrBase*);
};