mardi 3 mars 2015

enum to string in modern C++ (C++14) and future C++17

Yet another recurrent duplicated question:



But after reading many answers, I did not yet find any:



  • Elegant way using C++11/C++14 new features

  • Or something ready to use in Boost

  • Else something planned for C++17


Please do not provide C macro-based answers if possible (I am aware of beautiful #define P99_DECLARE_ENUM for C99/C11 available cloning git clone http://ift.tt/1F4crOl or from github).


Aucun commentaire:

Enregistrer un commentaire