Timeline for Code re-use in C++, via multiple inheritance or composition? Or...?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 16, 2014 at 18:20 | history | edited | Bart van Ingen Schenau | CC BY-SA 3.0 | edited body |
| Jun 27, 2014 at 20:48 | vote | accept | Leo | ||
| Jun 27, 2014 at 20:48 | comment | added | Leo | Yes I think you’ve hit the nail on the head with there being two elements to my question. I think what was stumping me was that I feel comfortable with the principles (if not the practice) behind §1, but I thought I would have to compromise them to deal with §2. CRTP is an inspired approach, and absolutely fits the concrete use-case I’ve got here: picking SDL vs a native runtime. The interfaces need to be polymorphic, but can be determined at compilation, so they don’t need runtime polymorphism. Thanks! | |
| Jun 27, 2014 at 19:38 | history | answered | utnapistim | CC BY-SA 3.0 |