Why must base class be constructed before derived members?MS VS doesn't produce a warning - which would be useful as I've been down this rabbit hole before! T...
Why must base class be constructed before derived members?Base will be initialised before fab_ irrespective of the ordering in the constructor - that is as sp...
Why must base class be constructed before derived members?The issue is the ordering of execution of the class constructor initialisations for DerivedBad. The ...
Interacting with a vector of objects derived from base class[quote]Like for a game where the player can have different types of items in their inventory but the...
What's the proper way to set a std::vector to another std::vector?The OP doesn't want to assign a complete vector to another. The OP wants to remove items from a vect...