< overloading issues

Can't seem to get my program to work

1
2
3
4
5
6
7
class Outer
{
  class Inner
  {
     bool operator<(const Inner& other) const;
  };
};


How to overload < ? Thanks.

Do I need to post more code?

Edit: Looks like I do. I've got it working, but I need to write:

if (inner01 < &inner02)

Can't be good...
Last edited on
What?
So why the nested class declarations?

And why the address in the if statement?
Topic archived. No new replies allowed.