Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the last letter in the word "SlickEdit":
How many LETTERS are in the following? "a1b2c3":
Which number is missing?  "12345689":

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Dennis
« on: April 30, 2019, 03:52:21 PM »

Kind of a persnickety compiler error, but I agree that it is correct, override should be last because "const" is part of the function signature which is being overridden.  I will put in a hot fix for this.  Thanks for reporting this!
Posted by: jc44
« on: April 30, 2019, 12:49:29 PM »

Hi

When generating a C++ derived class SE will generate prototypes for virtual methods. If the overridden method is "virtual int fn() const = 0" then the prototype generated by "Implementation here" is "int fn() override const {}" however my compiler (clang) complains "error: 'const' qualifier may not appear after the virtual specifier 'override'" - it wants "const override" rather than "override const" and I'm prepared to believe it is correct.

Thanks

John Cox