fix gcc build error about nested functor

why?