Cromon

Untitled

Aug 21st, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1.     mTestFunction = std::make_shared<Function>("debugTest");
  2.     mTestFunction->addOverload<int, char>(std::function<int (char) >(
  3.             [](char c) { return 2; }
  4.     ));
  5.  
  6.     mTestFunction->addOverload<int, float, std::string>(std::function<int (float, std::string)>(
  7.             [](float f, std::string str) { std::cout << str; return -1; }
  8.     ));
Advertisement
Add Comment
Please, Sign In to add comment