Whats the best way to think about or accomplish something like this? delegate/overload template function? this doesnt work.
template<typename Fn>
void processPackage(const std::string& msg, Fn proc) {...}
template<typename Fn>
void processPackage(const std::string* msg, Fn proc) {
processPackage(*msg, proc);
}
Aucun commentaire:
Enregistrer un commentaire