Hacker News new | ask | show | jobs
by caf 4336 days ago
It's definitely legal, the buffer is created with operator new and is not made visible to any other code, so the compiler knows that it can't change within the loop.