this post was submitted on 27 Jan 2024
0 points (NaN% liked)

C++

2181 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 2 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] AlmightySnoo@lemmy.world -1 points 2 years ago* (last edited 2 years ago)

Good ol' tag dispatch works fine too: https://godbolt.org/z/x8hsEK48K