| | | | | |

Argument and return type conversions

const char* TestFunction (double, double)
{
  static const char buffer[] = "Hello World";
  return buffer;
}

int main()
{
  Functor < string, TYPELIST_2(int, int)> cmd(TestFunction);
  std::cout << cmd(10,10).substr(7);  // output: "World"
}

| | Top of Page | 8. Generalized Functors - 15 of 26