fixed compile error in funcimpl.h