0
www.sandordargo.com · 1mo · discuss
There’s a fundamental gap in C++ that trips up everyone who reaches for it: you can’t pass a constexpr value through a function boundary and have it remain constexpr on the other side. The value is known at compile time, the function is constexpr, but the parameter inside the function body is not a constant expression. This forces workarounds - template parameters, tag types, std::integral_cons...