Hacker News new | ask | show | jobs
by usefulcat 34 days ago
I don't recall the source, but I don't believe most (any?) c++ compilers implement compile-time code evaluation by compiling and running code.

For one thing they are required to disallow all undefined behavior for compile time execution, and some forms of UB only occur when the code is run.

1 comments

Basically nowadays they ship an interpreter in the box as well.