Ok, so I want to know if I would be able to check if a symbol
exists inside another file with
#ifdef symbol
//it exists
#endif
or
#ifndef symbol
//it doesn't exist
#endif
Reason for that is that I want to check if a method exists in another file(class) and execute additional code accordingly.
EDIT:
As far as I've seen, it only checks if a symbol exists in the file(class) where the #ifdef
definition is.
EDIT #2: Is there a way to check if a function exists without having to be inside of the class with SFINAE or Templates? If yes, could you provide me some examples? I don't want spoon-feeding, but examples would help.