- Code: Select all
operator int () { return this->value; }
I.e. I need an object, which, although not an integer, may be used as an integer in other situations by simply using one of it's slots (it's a date object, if you need to know). When I'm trying to extend from integer class it says that integer and standard-class are incompatible. Or, better say, it wants me to add SB-MOP:VALIDATE-SUPERCLASS method to "handle" it somehow, yet I don't really understand how am I supposed to handle it :S
Thank you for any ideas, I may be doing it totally wrong, so don't hesitate to suggest a better way of doing the same thing!
