(файл Functor.h), см. также http://www.geocities.com/rani_sharoni/LokiPort.html (VC7) и конечно оригинал http://moderncppdesign.com/
>#include ‹stdio.h›
>int main() {
> struct base {
> void operator()(int x) { printf("void base::operator()(%d)\n",x); }
> };
> struct derived: base {};
> derived()(5);
> return 0;
>}
yaroslav_v 1.5.2003 9:55