Делегаты на C++ [Александр Шаргин] (fb2) читать постранично, страница - 7


 [Настройки текста]  [Cбросить фильтры]

noreferrer">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