7 ms·
The first example won't compile in c++ (can't get a ptr to a non const from a const without something naughty like a const_cast) - that's not undefined behaviou
by pmul 7y ago
The first example won't compile in c++ (can't get a ptr to a non const from a const without something naughty like a const_cast) - that's not undefined behaviour is it?
- lochsh 7y agoyou're right, I messed up here. I'm working on some updates to the blog post based on feedback.