Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That version does this. From cppreference (emphasis mine):

>The constexpr specifier declares that it is possible to evaluate the value of the function or variable at compile time. Such variables and functions can then be used where only compile time constant expressions are allowed (provided that appropriate function arguments are given).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: