| [ Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]
STR #1659
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 1 - Request for Enhancement, e.g. asking for a feature |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Unassigned |
Summary: | Missing "virtual" keyword in some .h files |
Version: | 2.0-feature |
Created By: | gga |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
| Currently, a number of .h files describe several of their inherited functions as non-virtual ones.
> grep '^\s*int.*handle' fltk/* > grep '^\s*void.*layout()' fltk/* > grep '^\s*void.*draw()' fltk/* > grep '^\s*void.*draw_overlay' fltk/*
C++ compilers will be smart enough to fix the error.
However, other parsers, such as SWIG for scripting language generation, are not so smart and will produce incorrect (and subtly wrong) output because of this. | |
|
#2 | anton146 07:43 Mar 31, 2008 |
| if inheriting already virtual function, another 'virtual' keyword isn't mandatory. Compilers aren't just smart, that is in the standard.
if swig doesn't handle it well, it's bug of swig, not fltk | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |