News for hackers. Stuff that matters.
Re:My C code works with -O3 but not with -O0 by cpdt on Thursday January 16, 2020 @08:39AM (#22064371)
And to elaborate on how the error message relates to this: std::addressof takes a reference which also can’t be null. So when you dereference the pointer you’re actually turning it into a reference (or binding the reference to the pointer, as the error message says).

There are no comments on this comment yet.