C
CubsNo1
Good morning.
I am disturbed by discovering that passing arguments by value and by
const reference is treated the same by the Gnu and the Sun compilers/
linkers. Also, passing an argument of char* and passing an argument
of char[4] are not distinguished. This is especially disturbing when
you mix in templates.
I haven't been able to get my question answered by reading my favorite
author Bruce Eckel (sal-lute!) and I haven't been able to find the
salient part of the standard. Can someone point me to a nice writeup
on this topic?
Regards,
Abraham
I am disturbed by discovering that passing arguments by value and by
const reference is treated the same by the Gnu and the Sun compilers/
linkers. Also, passing an argument of char* and passing an argument
of char[4] are not distinguished. This is especially disturbing when
you mix in templates.
I haven't been able to get my question answered by reading my favorite
author Bruce Eckel (sal-lute!) and I haven't been able to find the
salient part of the standard. Can someone point me to a nice writeup
on this topic?
Regards,
Abraham