jalkadir said:
I am looking for a C++ method that will tell me if the value returned
is a int, double, floeat, etc. Is there such a method in C++?
Thanks folks
The return type of any function can be and is determined at compile
time. Even by looking at the function declaration can tell you what type
does the function return.
Perhaps you are talking about something else, things like type reflection?
If the function you are expecting does exist, what would you think it
would look like? Is the following the example of what you are looking for:
int add(int a, int b);
string rettype = get_return_type("add"); // returns "int"
Ben