Unix equivalent of a variant??
Joerg Sonnenberger
joerg at britannica.bec.de
Tue Feb 1 14:00:51 PST 2005
On Tue, Feb 01, 2005 at 04:51:02PM +0000, Jonathon McKitrick wrote:
> I need the equivalent of a variant, however. A hold-everything variable
> that can be any type in C/C++. Is there something already out there I can
> use or should I just roll my own?
There's no generic base type in C or C++. The best approximation is a void
pointer, which can be casted on demand.
Joerg
More information about the Users
mailing list