Although the code compiles as is, cppcheck needs to "see" the CLASS_DEF macro to be able to parse the code.
CLASS_DEF
FYI @sroe @ssnyder