Compiler warning C4101: unreferenced local variable

Another attempt at fixing this warning. 
Putting the const at the end. That literally comes from the link that you posted and is also what I meant above with "otherwise you're making the reference itself const but references are const by definition":

> Another caveat: if you decide to use X const&, do something to make sure your people don't mis-type it as the nonsensical "X& const x".