What are the two ways to achieve automatic type conversion from type X to type Y?
---- * X can define the member function operator Y() * Y can define the constructor Y(const X&)
版权所有 © 非是非, 2007~2015