Modifying const reference argument via non-const reference argument
However, in main, I pass the same variable, referenced both by a and by b. As f modifies b, it also modifies a, which it supposedly shouldn’t When f modifies what b refers to, it does not modify a. It modifies what a refers to, but that is okay since b is not const. It’s … Read more