cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
typeid argument in runtime
typeid argument in runtime
Oct 24, 2011 at 9:13am UTC
closed account (
j6v0pfjN
)
Hi All,
I need to get the method return type .
So i'm using the RTTI typeid() method.So i need to pass the methodname as argument.
But i want to give tat value in runtime.
How to store tat value in a variable and give tat variable
Ex:
typeid( method1() ).name();
typeid( method2() ).name();
instead i need to store method1 and method2 in a variable and pass tat to typeid
Regards,
Kamatchi
Topic archived. No new replies allowed.