S
Subhransu Sahoo
Hi All,
Does the C++ standard tell function overloading can't be done with the
return types of two functions ? If so, is it true that the name
mangling scheme does not take the return type into account ?I know that
C++ standard does not tell anything about name mangling and only talks
bout function overloading. But, I have observed that the Metrowerks
Code Warrior compiler does take return type into the mangling scheme.
Is it not a bug with the compiler ?
Again, the fun part is that the symbols generated are different when I
declare one at a time. But, when I try to declare both it gives error.
I want to know how the compiler knows this in spite of the fact that
the symbols generated are different.
Regards,
Subhransu
Does the C++ standard tell function overloading can't be done with the
return types of two functions ? If so, is it true that the name
mangling scheme does not take the return type into account ?I know that
C++ standard does not tell anything about name mangling and only talks
bout function overloading. But, I have observed that the Metrowerks
Code Warrior compiler does take return type into the mangling scheme.
Is it not a bug with the compiler ?
Again, the fun part is that the symbols generated are different when I
declare one at a time. But, when I try to declare both it gives error.
I want to know how the compiler knows this in spite of the fact that
the symbols generated are different.
Regards,
Subhransu