>>13the real solution here would be for the compiler to recognize whether it's working on constants known at compile-time and then precompute it.
boolean-tokens isn't a solution to anything,
its a handy tool for constructing logical circuits
with zero overhead; you compile time functions(e.g. C++ constexpr) have potential for bugs and depends
on C++ lexing rules. C preprocessor is simpler,
finite system that can be 100% be relied on.
Try rewriting boolean-tokens.h as C++ constexprs
and you will end with much larger, more complex and
bug-prone header.