What is the rationale to not allow overloading of C++ conversions operator with non-member function
- by Vicente Botet Escriba
C++0x has added explicit conversion operators, but they must always be defined as members of the Source class. The same applies to the assignment operator, it must be defined on the Target class.
When the Source and Target classes of the needed conversion are independent of each other, neither the Source can define a conversion operator, neither…