May 01, 2024, 09:45:53 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


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.