I want to write a function that executes a method of some template class, but should also compile fine if the class does not have this. In this case, it should just not call the function.
struct A { void func() {} }; struct B { }; template <typename T> void anotherFunc(T t) {
Is it possible somehow?
source share