Original Post
🔒 Locked
vector<function pointer> ?
Advertisement
I'm just starting with this programming stuff; but have you tried typedefing the function type and then using it in your code? Like this:
I don't know if this will work; but I have had similar problems.
edit: Hmmm; code tags all mesed up.
[edited by - ShoelessManiac on May 31, 2003 1:23:44 AM]
typedef int (* func_ptr)() FUNC_PTR;
vector<FUNC_PTR> operator()(string str)
{
vector<FUNC_PTR> v;
return v;
}
I don't know if this will work; but I have had similar problems.
edit: Hmmm; code tags all mesed up.
[edited by - ShoelessManiac on May 31, 2003 1:23:44 AM]
My mistake; I shouldnt have put the FUNC_PTR bit at the end of the typedef.
Good luck friend!
Good luck friend!
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement