От: | korzhik | ||
Дата: | 16.02.04 19:32 | ||
Оценка: | 2 (1) |
class A
{
int m_i;
public:
A() : m_i(5) {};
operator double();
};
A::operator double()
{
std::cout << "operator double" << std::endl;
return double(m_i);
}
void main()
{
A a;
double d = a;
}