I frequently wind up having a subclass of Fl_Group where I want to enforce some invariant on the children, for instance that they are all sorted a certain way, or they all have entries in an auxiliary data table.
Unfortunately, insert and remove are not virtual, so I have to remember to call special add and remove methods or patch the library source to add virtual (I've gone the first route so far). Is there a better way to do this? Would it be reasonable to make insert and remove virtual? As an aside, is the 1->2 element hackery in Fl_Group really necessary? Of course a lot of this low level hackery would be much easier to read if it used STL, but maybe STL wasn't usable when fltk was written. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

