In this case is this the most correct way to code this? Actually, it is the "least correct" way: you are returning a reference to an automatic object. When the function returns, the client receives a reference to an object that no longer exists. There is no difference between lvalue referen...
00:00 - 20:0020:00 - 00:00
00:00 - 20:0020:00 - 00:00