Add shared_array to vc8 solution.
Fix shared_xxx::operator=. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@669 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -114,11 +114,13 @@ public:
|
||||
|
||||
shared_array& operator= (const shared_array& r) {
|
||||
if(r == *this) {
|
||||
return;
|
||||
return *this;
|
||||
}
|
||||
ctr->decref(ptr);
|
||||
ctr = r.ctr->incref();
|
||||
ptr = r.ptr;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
// automatic destruction of the wrapped object when all
|
||||
|
||||
Reference in New Issue
Block a user