All challenges
Code AnalysisHard 60s

Lifetime extension of temporary subobject binding

Given `struct S { std::string name; }; S make();` what happens with `const std::string& r = make().name;`?

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