Conversation
For improved readability. Follow-up to commit 29a96fa
Neither the pointer value nor the pointed-to data should ever change.
It makes the code harder to read and the compiler will optimize out the intermediate temporary variable anyway.
|
I'm pretty sure the std::move is pointless. Also, if I compile the file with g++ and -O2 to like this: before: and if I then do |
|
You are absolutely right. I was only looking at the calling code and at the function signature, I didn't think about the fact that Event was a trivial type. |
Hi Texus
Here's another small batch of small fixes/cleanups for you to consider.
Kind regards
Jesper Juhl