Added more comments.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@839 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
434ddf8198
commit
7dd3646382
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,10 @@ public:
|
|||
/// Destruct the object at pointer.
|
||||
void destroy( pointer p )
|
||||
{
|
||||
// If the Type has no destructor, then some compilers complain about
|
||||
// an unreferenced parameter, so use the void cast trick to prevent
|
||||
// spurious warnings.
|
||||
(void)p;
|
||||
p->~Type();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue