3 ms·
>Another example from the same professor (correct me if I'm wrong on this as I'm not a C++ expert), but he's constantly inheriting from unique or shared pointer
by 0xffff2 8y ago
>Another example from the same professor (correct me if I'm wrong on this as I'm not a C++ expert), but he's constantly inheriting from unique or shared pointers in his classes. Like why though?
You are not wrong. This completely breaks my brain. I really would love to hear the professor's explanation for this.
- daemin 8y agoThe same thing as people inheriting from standard containers. It does not make sense! It's like people see inheritance and then forget that containment is a thing.