* Madhusudhanan Chandrasekaran:
Is it possible for me to instantiate an object of the type
which is passed in as cmd line argument.
Command line arguments in C++ are simple C-style strings.
I know this can be done
in Java/Python having reflections. Is there any c++ way of doing this
either with rtti or some other hack.
You can parse the command line arguments, find out what kind of object
they specify, and instantiate that kind of object.
There's no built-in feature that helps directly with that.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?