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