I'm not new to C++, been programming in it for years but I cam across something today I'd never tried.
I was messing around with a library I wrote to increase it's performance, and to do this I changed some parameters to be references. This worked great but after looking up some info on the best way to do it I came across this on a site:
And I was just wondering, is this in anyway safe to use? Will the newInt not be deallocated upon return leaving only the reference and no way to know what is actually in memory that the given location?