Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- template<typename F, typename... Args>
- void callFunction (F f, Args&&... args) {
- f(args...);
- }
- void some_function (int param) {
- std::cout << "TEST: " << param << std::endl;
- }
- int main () {
- callFunction(some_function, 2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement