11 Jun
2003
11 Jun
'03
10:28
Hi, how can I perform "reflection" in C++ ? Is it possible? My situation is as follow: application will consume a string that contains whitespace-separated fields. One of the field describes the class name. Based on this string, I'll create the appropriate objects. So basically it'll looked like this: T& createObj() { vector<string> argv; //read line and populate argv //Set T = class to be instantiated. return T::createObj(argv); } -- -- Verdi March --