The user-defined-literals from C++11 helps the integers and float numbers have a vertain unit like m,cm,mm,km,and so on. But it seems that it deals only with constant. I have a runtime program which always calculates some lengths and convert them between different units. Are there also similar mechanisms like user-defined-literals in C++ for variables?
Aucun commentaire:
Enregistrer un commentaire