Design
letters.asc
Associated article: Letters
Tags: Design
_LETTERS TO THE EDITOR_
Example 1:
by Steve Simpson
Example 1:
(a)
void* MyClass::operator new(size_t size)
{
if (size == sizeof(MyClass))
{
// allocate from fixed size memory pool
}
else
{
// call global new for inherited class of any size
return ::operator new(...


