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";
}

@wallhackio this probably isn't the answer you're looking for but it's becuase c++ is a bastard unholy mess of a language

Follow

@holly this is correct but unfortunately will not be accepted as an answer

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.