0
template <template <typename> class CallbackT,
      typename Functor,
      typename... Args>
decltype(auto) BindImpl(Functor&& functor, Args&&... args) 

BindImpl is a template function, and is called like this:

return internal::BindImpl<OnceCallback>(std::forward<Functor>(functor),
                                        std::forward<Args>(args)...);

as far as I know, template template paramaters are not allowed in a template function.

What kind of mechanism is used here?

see source code here

gonidelis
  • 885
  • 10
  • 32

1 Answers1

0

The code is correct, as there is no restriction as the Chinese Wikipedia article describes. Regretfully I cannot update the article, as my IP address is banned. You should delete that sentence if you can.

Yongwei Wu
  • 5,292
  • 37
  • 49