Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++move semantics and rvalue refsSingle-choice MCQ

Why does the following overload set call `process(T&)` rather than `process(T&&)` for the inner call?

void sink(int&) { /* A */ } void sink(int&&) { /* B */ } void relay(int&& x) { sink(x); } int main() { relay(10); }