@vaporeon_ it did fit into my brain before I burnt it
@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
@vaporeon_ @aescling yes
@alyssa a constructor returns an rvalue which is not supposed to be allowed to appear on the left side of an assignment
@vaporeon_ it should be #include <iostream>
@vaporeon_ what the fuck is mastodon is hiding the hashtag
@vaporeon_ it should be #include
@vaporeon_ evidently I have burnt my brain today
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";
}
@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
@aescling are you the edgy moon rat today?
@aescling I am in the office unfortunately
@Lady why can't I choose both >:[
@onfy my condolences
@amy binkus
@Lady i expected much worse, thank you for mercy
kept afloat by big ideas.
you can call me Caleb or Clodsire. i also go by clodboy and catwin. i am not picky about names (unless its one amy made up)
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
pfp is by @The_T
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
"i know your taste in movies well enough to discount your opinion" ~globin
"caleb is the only person on this websites who truly understands what the report button is for: 'i don't like this post'" ~holly
30+
straight
he/him