Hi. I'm starting to get a fair handle on C++ now but the one thing that seems to completely baffle me is nested classes. I can understand composition, thats no problem at all but why on earth would anyone want to include a class definition inside another class.Its not like the inner class is only accessible to the outer class and also the inner class has no access to outers members and vice versa.
So why nest classes?
Should I do this with my classes?
Are there any benefits to nesting classes?
Is it just me or do nested classes lead to more confusing sourcecode in general?