Multiple ChoiceIntermediate 45s
Dependent base member access
Inside a class template derived from a dependent base, why must you write `this->member` or `Base<T>::member`?
Options
- 1Because the `this` pointer is disabled inside templates, so members can only be reached through the base name.
- 2Because member access on a template parameter is not allowed, so the name must be reached through the base class.
- 3Because the one-definition rule requires qualification of every member name used inside a class template.
- 4Because unqualified lookup does not search dependent base classes, so the name may not be found.
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.