Y
Hacker News
new
|
ask
|
show
|
jobs
by
pmul
2645 days 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?
1 comments
lochsh
2645 days ago
you're right, I messed up here. I'm working on some updates to the blog post based on feedback.
link