Add TLS class wrapper.

Fix AutoPtr operator=.
Fix typo.
This commit is contained in:
castano
2008-04-17 18:39:01 +00:00
parent 6db5cffca6
commit 91eb30667f
3 changed files with 79 additions and 3 deletions

View File

@ -48,8 +48,11 @@ public:
/** Delete owned pointer and assign new one. */
void operator=( T * p ) {
delete m_ptr;
m_ptr = p;
if (p != m_ptr)
{
delete m_ptr;
m_ptr = p;
}
}
/** Member access. */