#include "structures.h" void f() { std::vector v; std::vector(v).swap(v); std::vector &vref = v; std::vector(vref).swap(vref); }