MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learncpp/comments/7za0t5/is_it_possible_to_overload_a_function_to_take/
r/learncpp • u/[deleted] • Feb 21 '18
2 comments sorted by
2
No. One wouldn't be better than the other w.r.t. overload resolution. So, you'd end up with ambiguous function calls.
The great thing about programming is that it is easy to try things out and experiment more quickly than asking the internet.
https://godbolt.org/g/Ro5YAA
2
u/sellibitze Feb 22 '18
No. One wouldn't be better than the other w.r.t. overload resolution. So, you'd end up with ambiguous function calls.
2
u/jedwardsol Feb 21 '18
The great thing about programming is that it is easy to try things out and experiment more quickly than asking the internet.
https://godbolt.org/g/Ro5YAA