c++.beta - conversion function: illegal operand types
- Christof Meerwald (29/29) Jun 15 2003 struct A
struct A { operator unsigned short() const { return 0; } }; struct B : public A { operator unsigned short() const { return 0; } }; int main() { B b; return 0 < b; // Error: illegal operand types // Had: int // and: B } Extracted from Boost's date_time library. bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Jun 15 2003