In passing a string to a function that will not modify the original string, is there any real difference between
versusCode:void myfunc( const string& source ) { ... }
I read somewhere that most compilers won't actually make a copy of the string if it's not being altered. If that's true, it seems that these two forms would be equivalent. Is that true?Code:void myfunc( string source ) { ... }