> Hi,
>
> > Fabio Bracci wrote:
[...]

> I like this second solution more, it still relies on the compiler's type 
> checking; I dislike C-like type castings, they are error prone ... a safer 
> way would be to use a reinterpret_cast<Fl_Widget *>(my_group)

Avoiding casts is to be commended, and here you don't need one.
Just write

  Fl_Widget* w = my_group;
  w->draw();

Best,
Stan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to