Variant Function::InvokeVariadic(ArgumentList &arguments) const { #ifdef CONFIG_DEBUG UAssert( IsValid( ), "Invalid function invocation" ); #endif return m_invoker( arguments ); }
result_type operator()(__TArgs&&... args) const { if (empty()) { throw std::runtime_error("bad function call"); } return m_invoker(m_func, std::forward<__TArgs>(args)...); }