EDIT_1 : Change Combine class to inherete other classes
class Combine : public Actions, Triggers
{
public:
void combine_funcs()
{
get_external_func(this_is_external_func);
}
void loop()
{
if (millis() > 10000)
{
callAction(13);
}
}
yeilds same error:
/Users/guydvir/Dropbox/Arduino/sketch_jul26a/sketch_jul26a.ino: In member function 'void Combine::combine_funcs()':
sketch_jul26a:33:23: error: invalid use of non-static member function 'void Triggers::this_is_external_func(uint8_t)'
33 | get_external_func(this_is_external_func);
| ^~~~~~~~~~~~~~~~~~~~~
/Users/guydvir/Dropbox/Arduino/sketch_jul26a/sketch_jul26a.ino:22:8: note: declared here
22 | void this_is_external_func(uint8_t i)
| ^~~~~~~~~~~~~~~~~~~~~
/Users/guydvir/Dropbox/Arduino/sketch_jul26a/sketch_jul26a.ino: At global scope:
sketch_jul26a:60:6: error: redefinition of 'void setup()'
60 | void setup()
| ^~~~~
/Users/guydvir/Dropbox/Arduino/sketch_jul26a/sketch_jul26a.ino:46:6: note: 'void setup()' previously defined here
46 | void setup()
| ^~~~~
sketch_jul26a:68:6: error: redefinition of 'void loop()'
68 | void loop()
| ^~~~
/Users/guydvir/Dropbox/Arduino/sketch_jul26a/sketch_jul26a.ino:54:6: note: 'void loop()' previously defined here
54 | void loop()
| ^~~~
exit status 1
invalid use of non-static member function 'void Triggers::this_is_external_func(uint8_t)'
};