I will give the first person to correctly explain why this compiles a nice compliment

#include <iostream>

class A {};

int main() {
std::cout << &(A() = a) << "\n";
}
Follow

I am increasing the bounty. Whoever can explain this gets 1) a compliment, 2) a headpat, and 3) a kissy on the forehead

@wallhackio Getting headpat by Clodsfire sounds like a great way to be set on fire...

Good thing that Vaporeons are resistant to fire damage :vaporeon:
And also too stupid to understand why this code compiles despite a being an undeclared identifier...

@wallhackio my explanation was just “C++ is bad” but i’m guessing you want something a bit more technical

@Lady I seek not only truth, but specificity and truth

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.