Hello!
I have a contairer class Number which is going to be able to contain a few different number types, including an integer class and a fraction class. The thing is that, if a fraction suddenly turns out to have an integer value, it is going to convert itself from a private function, to an integer object. What is the simplest method to achieve that? The number class uses a boost::variant to store the actual number.