Hacker Newsnew | past | comments | ask | show | jobs | submit | CuriousThinker's commentslogin

Thanks!


Yes that's exactly what's happening under the hood. I'm definitely looking forward to the constexpr operator being accepted!


Thanks for catching that!


I discuss the approach more in depth here:

http://saadahmad.ca/detecting-evaluation-context-inside-cons...


So would a valid tl;dr be, "modify the compiled program to catch any invocations not evaluated at compile time and make them return the correct value?"


That is basically it :)


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: