Changed type declarations to use result_of instead of decltype, added example showing how to apply functor to template varargs parameters