Show newer

@aescling @vaporeon_ but my job demands that I know how to use the evil language

@vaporeon_ @aescling but the result of A() is an rvalue, which is not allowed to be given to & or appear on the left side of an assignment. That is the mystifying part here

@alyssa a constructor returns an rvalue which is not supposed to be allowed to appear on the left side of an assignment

@vaporeon_ what the fuck is mastodon is hiding the hashtag

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

Show thread

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

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

Show thread

Since my laptop and I literally cannot work I am now getting paid to learn whatever programming I want until IT fixes it

Show older
📟🐱 GlitchCat

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