jeudi 24 décembre 2015

How to write customizable function templates in modern C++?

I have been writing function templates as single function template that delegates to a class template according to Why Not Specialize Function Templates? with some small changes, like this:

http://ift.tt/1NEaJJ2

It works good for me, but I would like to know if there are better ways in modern C++. Any advice would be appreciated. Thank you very much.

Aucun commentaire:

Enregistrer un commentaire