P
puzzlecracker
In the following example,
String s;
std::cout<<s[3];
s[3]='x';
How does a compiler know which one to call? Does it try to call const
first, and if it fails it rolls back to non-const one. As is
cout<<s[3], How does it know which one to call?
Thanks
String s;
std::cout<<s[3];
s[3]='x';
How does a compiler know which one to call? Does it try to call const
first, and if it fails it rolls back to non-const one. As is
cout<<s[3], How does it know which one to call?
Thanks