Skip to content

Commit 09061b9

Browse files
committed
remove global new/delete operators for CMEM
1 parent a760d04 commit 09061b9

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

source/flsupport.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -254,32 +254,6 @@ FLEXT_TEMPIMPL(void FLEXT_CLASSDEF(flext_root))::FreeAligned(void *blk)
254254
}
255255
}
256256

257-
// ------------------------------------------
258-
259-
#if defined(FLEXT_USE_CMEM)
260-
// define global new/delete operators
261-
void *operator new(size_t bytes) NEWTHROW
262-
{
263-
return flext_root::operator new(bytes);
264-
}
265-
void operator delete(void *blk) DELTHROW
266-
{
267-
flext_root::operator delete(blk);
268-
}
269-
270-
#ifndef __MRC__ // doesn't allow new[] overloading?!
271-
void *operator new[](size_t bytes) NEWTHROW
272-
{
273-
return flext_root::operator new[](bytes);
274-
}
275-
void operator delete[](void *blk) DELTHROW
276-
{
277-
flext_root::operator delete[](blk);
278-
}
279-
#endif
280-
281-
#endif // FLEXT_USE_CMEM
282-
// ------------------------------------------
283257

284258
/*! \todo there is probably also a shortcut for Max and jMax
285259
\todo size checking

0 commit comments

Comments
 (0)