| 67 | |
| 68 | template<typename T> |
| 69 | void tcArrayDelete(T* ptr) |
| 70 | { |
| 71 | // can't do array placement destruction since not tracking size in |
| 72 | // allocation, only allow builtins to use array placement since they |
| 73 | // don't need destructors called |
| 74 | typedef char builtin[IsFundamentalType<T>::Yes ? 1 : -1]; |
| 75 | (void)sizeof(builtin); |
| 76 | |
| 77 | ::operator delete[](ptr, TaoCrypt::tc); |
| 78 | } |
| 79 | |
| 80 | #define NEW_TC new (TaoCrypt::tc) |
| 81 |