Code AnalysisIntermediate 60s
Dependent base member lookup
template<class T>
struct Base { void foo(); };
template<class T>
struct Derived : Base<T> {
void bar() { foo(); } // error in many compilers
};
Why does the unqualified call foo() fail to compile, and what is the fix?
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.