On 13.03.2008, at 20:54, Evan Laforge wrote: > 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?
Yes, that would be useful, but break binary compatibility. It will be a likely option for 1.3 though. > 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. The hackery was done to squeeze the lat byte out. STL was non-existing when FLTK was started and Fl_Group was one of the first widgets. We decided to avoid introducing STL later because there were still compilers out there for a long time that messed up STL. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

