Unoverloadable C++ operators
问题 What operators can not be overloaded in C++? 回答1: From Wikipedia: Operator Name Syntax Bind pointer to member by reference a.*b Member a.b Scope resolution a::b Size of sizeof(a) Ternary a ? b : c Type identification typeid(a) 回答2: I'm pretty sure the C++ FAQ Lite probably covers this. The ones I can think of right off are the ternary operator, the . operator and the scope resolution operator ( :: ). Thinking a moment, since the . operator can't be overloaded, .* probably can't be either.