All challenges
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
  1. 1Because the `this` pointer is disabled inside templates, so members can only be reached through the base name.
  2. 2Because member access on a template parameter is not allowed, so the name must be reached through the base class.
  3. 3Because the one-definition rule requires qualification of every member name used inside a class template.
  4. 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.

Play this in a 3-minute battle