void* allocateBytes(size_t size)
{
if (size > MAX_SIZE)
return NULL;
return new void*[size];
}
Fixed function
void* allocateBytes(size_t size)
{
if (size > MAX_SIZE)
return (void*)NULL;
return (void*)new char[size];
}