C function pointers vs C++ templates

which one is the most efficient and recommended practice when implementing an Observer pattern ??
The polymorphic call wrapper std::function<> gives the maximum amount of flexibility in implementing callbacks.
http://en.cppreference.com/w/cpp/utility/functional/function


Topic archived. No new replies allowed.