G
Gernot Frisch
Hi,
my problem in detail:
I want to make a macro:
DOUBLE(x);
in global space, that will do this:
std::map<const char*, void*> variables;
....
double x;
variables["x"] = &x;
However, I can't do the "variables["x"]" thingy in global space (out
of scope).
Is there any way to do this using constructors e.g.?
Thank you,
Gernot
my problem in detail:
I want to make a macro:
DOUBLE(x);
in global space, that will do this:
std::map<const char*, void*> variables;
....
double x;
variables["x"] = &x;
However, I can't do the "variables["x"]" thingy in global space (out
of scope).
Is there any way to do this using constructors e.g.?
Thank you,
Gernot