class foo {
public:
bool operator () (int & i) {
return true;
}
};
int main() {
foo(WhyDoesThisCompile);
return 0;
}
When passing WhyDoesThisCompile
(without spaces) to the functor, the program compiles.
Why is this? I tested it on clang 4.0.0.
a(b)
has several possible meanings depending whata
andb
are. Also there is no built-in function calledfoo
. You must just be trolling at this point – Dukey