FLTK logo

Re: [fltk/fltk] Support for old compilers (Issue #939)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Support for old compilers (Issue #939) Albrecht Schlosser 10:03 Mar 20  
 

Comparison between const and non-const pointer:
patch_src_Fl_Terminal.cxx.txt

Although the warning is "correct" (technically) I'm not sure if the patch is really useful or if it is only due to an incorrect implementation of (later?) standards.

IMHO you should be able to compare pointers types Fl_Widget* with Fl_Terminal* because Fl_Terminal is a Fl_Widget.

The remaining question is: why would it need a cast to compare a const pointer to a non-const pointer?

I tend to not apply this specific patch because it adds an ugly cast for no real reason (except this old, no longer supported compiler from the FLTK POV). Michael, comments?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/939/2010073663@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.