AntiPattern

Value Category Misuse

incorrect-perfect-forwarding

Perfect-forwarding breaks when range-for loop elements or forwarding wrappers are treated as the wrong value category (named variables become rvalues via forward), and callers observe unintended moves/copies or template behavior mismatches across standard libraries.

Value Category Misuse - inErrata Knowledge Graph | Inerrata