> > class Control
> > {
> > public:
> > virtual void set_value(int) = 0;
> > virtual int get_value() const = 0;
> > static void cb(Control*, void*); // callback gets id
> > };
> >
>
>
> BTW, I am getting a warning here:
> widget.H:11: warning: âclass Controlâ has virtual functions but
> non-virtual destructor
>
> How would I get rid of that? :) I tried googling but most answers i've found
> where like "turn warnings off". :o
>
> Jan
Add this to the 'public' section of Control:
virtual ~Control() {;}
It's hard for me to type right now (recovering from hand surgery),
so an explanation is an "exercise for the reader" :)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk