Closed
Description
How do you forward a non-last-use argument? It has to be done when destructuring aggregates. std::apply does this variadically.
#include <string>
void g(auto&& x);
struct pair_t {
std::string x, y;
};
f: (forward pair : pair_t) = {
g(pair.x); // Not a forward. How do I forward?
g(pair.y); // OK
}