G
Good Guy
Consider following function:
void func(const char & input){
//do something
}
Apparently it makes sense for the parameter to be constant value not
reference to constant, Now may a compiler optimize that to constant
value so that it'll be the same as following ?
void func(const char input){
//do something
}
void func(const char & input){
//do something
}
Apparently it makes sense for the parameter to be constant value not
reference to constant, Now may a compiler optimize that to constant
value so that it'll be the same as following ?
void func(const char input){
//do something
}