Diamond inheritance (C++)

前端 未结 7 1020
时光取名叫无心
时光取名叫无心 2020-11-29 04:04

I know that having diamond inheritance is considered bad practice. However, I have 2 cases in which I feel that diamond inheritance could fit very nicely. I want to ask, wou

7条回答
  •  执笔经年
    2020-11-29 04:46

    I ran into this problem just this week and found an article on DDJ that explained the problems and when you should or shouldn't be concerned about them. Here it is:

    "Multiple Inheritance Considered Useful"

提交回复
热议问题