… | |
… | |
88 | const T &operator [] (int i) const { return * (const T *) (& ((* (const simplevec<void *> *)this)[i])); } |
88 | const T &operator [] (int i) const { return * (const T *) (& ((* (const simplevec<void *> *)this)[i])); } |
89 | }; |
89 | }; |
90 | #endif |
90 | #endif |
91 | |
91 | |
92 | inline void * |
92 | inline void * |
93 | operator new (size_t size) |
93 | operator new (size_t size) throw (std::bad_alloc) |
94 | { |
94 | { |
95 | // TODO: use rxvt_malloc |
95 | // TODO: use rxvt_malloc |
96 | return malloc (size); |
96 | return malloc (size); |
97 | } |
97 | } |
98 | |
98 | |
99 | inline void |
99 | inline void |
100 | operator delete (void *p) |
100 | operator delete (void *p) throw () |
101 | { |
101 | { |
102 | free (p); |
102 | free (p); |
103 | } |
103 | } |
104 | |
104 | |
105 | template<typename T> |
105 | template<typename T> |