COM and Overloaded Operators
Posted on 2000-05-12
We are looking to create a C++ COM component. We want to be able to overload the mathematical operators (+, -, *, /). Is it possible to expose these overloaded operators through our IDL and interface? Also, the operator will only be performed on objects of the Class it is overloaded for, so commutativity is not needed, so would we need to make the operator a friend function?