May 16, 2024, 09:07:10 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Automatic conversion operators

Started by Parker, January 22, 2006, 04:57:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Parker

In C++ they fall under operator overloading, but I'm wondering if there is a possibility that we can have automatic conversions in classes. So for example, we could define the subroutine int() inside a class and return its m_something variable.

Just something I'm hoping for, no pressure or anything though. Thanks.