[4.6.1] Returning reference to structure gives error

Ok, found my mistake.

Of course you can’t set any value of the struct if it’s const. Just remove the const keyword, and it should work!