00001 /* 00002 $Id: __Destruct.h,v 1.4 2003/06/30 00:18:06 mindstorm2600 Exp $ 00003 00004 Este header redefine el operador delete 00005 00006 */ 00007 #ifndef __CLAW_OBJECT_H__ 00008 #error "Don't include this file directly, instead include Object" 00009 #endif 00010 00011 #ifndef ____CLAW_DESTRUCT_H__ 00012 #define ____CLAW_DESTRUCT_H__ 00013 namespace clawsoft{ 00017 template<class __ttype_x> 00018 inline void claw_delete(__ttype_x &ptr){ 00019 delete ptr; 00020 ptr = 0; 00021 } 00022 00026 template<class __ttype_y> 00027 inline void claw_delete_array(__ttype_y &array){ 00028 delete[] array; 00029 array = 0; 00030 } 00031 00032 00033 } 00034 #endif
Authors:
Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara
Powered by: