Dexter Castor Döpping (@CastorDopping) header
Dexter Castor Döpping (@CastorDopping) profile picture

Opinions are my own and do not reflect reality

Joined January 2020
Dexter Castor Döpping retweeted
Given the following in C++: #include <iostream> struct A { operator int() {return 1;} }; bool operator==(A, int){return 0;} What is the result of: int main() { std::cout <<(1 == A{})<<"\n"; } A. 1 B. 0 C. Ill-formed D. Depends on standard version #Cplusplus #Cpppolls
45%A
21%B
14%C
20%D
474 votes • Final results
13
28
2
131