The intersection of forwarding references and overload resolution has been bugging me, and I’ve been caught out a few times on the wrong overload, so here’s an idea.
The intersection of forwarding references and overload resolution has been bugging me, and I’ve been caught out a few times on the wrong overload, so here’s an idea.
Good ol’ tag dispatch works fine too: https://godbolt.org/z/x8hsEK48K
Nice. I’d not thought of that one.