Group: comp.lang.c++
From: "D. Susman"
Date: Monday, February 18, 2008 1:13 AM
Subject: Macro, Polymorphism

Hi,

I wonder if there is a way to introduce polymorphic parameters to a
macro. What I'm trying to say is: Say, I have a macro X taking
argument of type A*. Let there be a B class deriving from class A. Can
I pass a B to the macro as a pointer to A?

(One might say, "use templates anyway". I am applying a memory pool
mechanism and wrapping new and delete with macros New and Delete
correspondingly)

Thanks.