Compile partial static member function/constructor to function object