Rosario19 schreef op 03-Jun-15 om 9:34 AM:
Because in C++ the return type is not part of the signature of a
function: it plays no role in determining which function is called,
hence there is no need at link time for different names for those two
functions.
(There are languages, for instance Ada, where the return type *is* part
of the signature. This adds some power to the language, but makes
parsing - both by humans and by compilers and other tools - of the
language much harder.)
Wouter