Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mTestFunction = std::make_shared<Function>("debugTest");
- mTestFunction->addOverload<int, char>(std::function<int (char) >(
- [](char c) { return 2; }
- ));
- mTestFunction->addOverload<int, float, std::string>(std::function<int (float, std::string)>(
- [](float f, std::string str) { std::cout << str; return -1; }
- ));
Advertisement
Add Comment
Please, Sign In to add comment