All challenges
Code AnalysisHard 60s

Missing std::forward loses rvalueness

What is wrong with this perfect-forwarding wrapper?
Starter code
template <class T>
void wrap(T &&x) {
    consume(x); // no std::forward
}

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