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

Oops there is missing declaration of the variable a. This is what you should be examining:

class A {};

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

Follow

@vaporeon_ what the fuck is mastodon is hiding the hashtag

@wallhackio Maybe it's stripping out <iostream> because it thinks that it's a HTML tag that it doesn't recognize?

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.