Category "derived-class"

DElem<T,N> derives from BElem<T> and DContainer<DElem<T,N>> derives from BContainer<BElem<T>> How to code it?

The question is easy to explain in code. I have coded several template classes that they derive from a unique template class: template<typename T,unsigned N&

DElem<T,N> derives from BElem<T> and DContainer<DElem<T,N>> derives from BContainer<BElem<T>> How to code it?

The question is easy to explain in code. I have coded several template classes that they derive from a unique template class: template<typename T,unsigned N&

C++ map with constructor and parameter

I want to have an unordered map with a string and a std::function that call a constructor a class to make a shared_ptr. But I'm stuck, I don't know what I shoul

error: type ‘class’ is not a direct base of ‘class’

I haven't been able to find an answer that relates specifically to my question. It's a bit of a "strange" case in terms of what I've seen. So I have a class C