This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TM4C1294NCPDT: Overriding methods [Date: 2017/11/14]

Part Number: TM4C1294NCPDT

Tool/software: TI C/C++ Compiler

Hello there,

i´m about to implement a visitor pattern for use on a TM4C1294 µC.
As starting point i use a wikipedia article :
This article relies on the "override" keyword which belongs to the C++11 standard which isn´t supported from what i read.
So i have a few questions:

1.)
I could imagine that the ability to do this is also a question of the device, but not only of the compiler?

2.)
I "overriding" mechanism / late binding possible with current TM4C compilers?
Even if the compilers don´t have the "override" feature in the sense of C++11 standard - what happens, when i do override implicitly?

3.)
Why is "override" highlighted in the header files, when i type it after a method?
I tried typing in the override keyword after a method declaration and it was highlighted. Is this just a behavior of the IDE and has nothing to do with the compiler?

best regards!

  • 1) You can override in C++03, it's just that you can't use the keyword "override." Just leave out the keyword and write it the same way otherwise. Think of the keyword as more-or-less a hint to the compiler, unless you're doing some really fancy stuff.

    2) Yes, all TI compilers currently support C++03.

    3) Yes, this is a feature of the IDE and has nothing to do with the compiler. If the syntax highlighter has a C++11 mode, you'll need to turn that on.