Hacker News new | past | comments | ask | show | jobs | submit login

I didn't realize that as of C++14, you can now execute loops at compile time. Does that work in many compilers?



Wouldn't any fully standards compliant compiler for c++14 support that feature?


gcc's optimizer will often do it for plain C

(recent versions at least)




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: