jeudi 13 août 2015

Pure interface and Curiously Recursive Template Pattern

I am a beginner of C++. I have learned that Interface Class should not have implementation because of diamond inheritance problem(=multiple inheritance with a same ancestor class cause same name problem.) And pure Interface Class should have only other pure Interface classes. Well, please assume a base class takes the derived class as template parameter; that is, Curiously Recursive Template Pattern(CRTP). Now we don't have same name member problem in multiple inheritance. If so, do we have any problem with Interface class with CRTP? Or do we have any other problem with it? I might made big misunderstanding. Please tell me your answer. Thank you very much.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire