Don't return by const value. At best, it does nothing. At worst, it confuses the optimizer.
Don't return by const value. At best, it does nothing. At worst, it confuses the optimizer.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
And do not return reference to static local var from function that may be used in multithreading envirounment
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler