2 ms·
what would be the simpler way to translate any string in a given DSL in an expression at compile time in C++ ?
by jcelerier 9y ago
what would be the simpler way to translate any string in a given DSL in an expression at compile time in C++ ?
- Arelius 9y ago'const char* transformSrc_MyExpr(const char* src);' We're the compiler to invoke some function like that at compile time, it would be much more simple. I'm not suggesting this exactally, or even something very similar, but serves as an example.