B
benben
How do you declare a function f that takes a parameter that is a pointer
to itself?
So you can do f(f);
Pardon my curiosity!
Ben
to itself?
So you can do f(f);
Pardon my curiosity!
Ben
How do you declare a function f that takes a parameter that is a pointer
to itself?
So you can do f(f);
Pardon my curiosity!
Ben
softcoder said:Pardon my curiosity! but can anybody please explain why this code
works?
-softcoder
How do you declare a function f that takes a parameter that is a pointer
to itself?
So you can do f(f);
Lionel said:struct ftype
{
void operator() (ftype) const {}
};
int main() {
ftype f;
f(f);
}
Well ok, so functor, not function... and it wasn't actually supposed to
do anything was it?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.