< overloading issues

Dec 15, 2012 at 7:40pm
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 Dec 15, 2012 at 7:53pm
Dec 15, 2012 at 10:45pm
What?
Dec 16, 2012 at 1:17am
So why the nested class declarations?

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