Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. template <typename Ret, typename...Arg>
  2. Ret call (Ret (*func)(Arg...), std::list<boost::any> args)
  3. {
  4. if (sizeof...(Arg) != args.size())
  5. throw "Argument number mismatch!";
  6.  
  7. return func(any_ref_cast<Arg>().do_cast(fetch_back(args))...);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement