News for hackers. Stuff that matters.
Re:T* makes for a poor optional<T&> by junon on Monday December 13, 2021 @06:04PM (#29545887)
> praying the compiler can remove the redundant check

It can in pretty much every single case even on -O1.

Re:T* makes for a poor optional<T&> by kitkat_new on Monday December 13, 2021 @06:34PM (#29546188)
I somehow have my doubts if that check was made in entirely different parts of the program
Re:T* makes for a poor optional<T&> by junon on Monday December 13, 2021 @09:35PM (#29547523)
What do you mean?