4 ms·
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 th
by usefulcat 5mo 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.
- pjmlp 5mo agoBasically nowadays they ship an interpreter in the box as well.