Exemplo n.º 1
0
        Variant Function::InvokeVariadic(ArgumentList &arguments) const
        {
        #ifdef CONFIG_DEBUG

            UAssert( IsValid( ), "Invalid function invocation" );

        #endif
        
            return m_invoker( arguments );
        }
Exemplo n.º 2
0
 result_type operator()(__TArgs&&... args) const {
     if (empty()) {
        throw std::runtime_error("bad function call");
     }
     return m_invoker(m_func, std::forward<__TArgs>(args)...);
 }