How to transmit a template?
问题 i want a Base template class with 2 template parameters. Specially, second parameter is a template parameter. Derived is derived from Base with CRTP. Now i want to generate the base class of Derived like Base<Derived,Derived::second_tmpl> , but the generating base class isn't same as the real base class of Derived . How do i transmit a template? #include <type_traits> template<typename T, template<typename>class U> struct Base { using type = Base<T,U>; using devired_type = T; template