News for hackers. Stuff that matters.
Re:Enum class improvements for C++17, C++20 and C++23 by tstack on Sunday August 04, 2024 @10:35PM (#41157704)
They most certainly can be null as can “this”.
Re:Enum class improvements for C++17, C++20 and C++23 by usefulcat on Sunday August 04, 2024 @11:10PM (#41157844)
Only after dereferencing a null pointer, which would be the actual problem, not the fact that some reference or this is null.
Re:Enum class improvements for C++17, C++20 and C++23 by Matheus28 on Monday August 05, 2024 @01:12AM (#41158328)
You cannot have a null reference unless you invoke undefined behavior first.