mardi 20 novembre 2018

what is the proper template delegation? [on hold]

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