memesearch
C++ Undefined Behavior Evolution

C++ Undefined Behavior Evolution

Download Find similar pictures
Text on the meme
C++ evolution in nutshell C++ language lawyers! Is this undefined behavior? struct R { static void foo() {} }; void foo(R* r) { r->foo(); } int main() { foo(nullptr); } It was agreed that this was allowed, see LWG 315 No this is undefined behavior: open-std.org/jtc1/sc22/wg21...
What it means

A programming discussion screenshot shows a C++ code example calling a static member function through a null pointer. The joke is that C++ language lawyers argue over whether this technically counts as undefined behavior, highlighting the absurd complexity of C++ rules. A programming discussion screenshot shows a C++ code example calling a static member function through a null pointer. The joke is that C++ language lawyers argue over whether this technically counts as undefined behavior, highlighting the absurd complexity of C++ rules.

Objects
Tags
Source
Type
image
Size
556×800 · 64.1 KiB
Mood
саркастичный, абсурдный
Language
en
Added