If you have two function overloads foo()
: one is taking const std::string&
and the other taking bool
. Which one of them will be selected when you call foo("hello world");
?
Let’s see where such a case might bite us and cause troubles?
Read more...