Inline member operators vs inline operators C++
问题 If I have two structs: struct A { float x, y; inline A operator*(A b) { A out; out.x = x * b.x; out.y = y * b.y; return out; } } And an equivalent struct struct B { float x, y; } inline B operator*(B a, B b) { B out; out.x = a.x * b.x; out.y = a.y * b.y; return out; } Would you know of any reason for B's operator* to compile any differently, or run any slower or faster than A's operator* (the actual actions that go on inside the functions should be irrelevant)? What I mean is... would