Is the main() function odr-used?
问题 Is the main() function odr-used? E.g in the simple program like this: int main() { } 回答1: No, it is not. Not in your simple program. [basic.def.odr] 3 A function whose name appears as a potentially-evaluated expression is odr-used if it is the unique lookup result or the selected member of a set of overloaded functions ([basic.lookup], [over.match], [over.over]), unless it is a pure virtual function and either its name is not explicitly qualified or the expression forms a pointer to member (