4 ms·
A lightweight alternative I often use is to make a named constexpr at the callsite. `constexpr bool IS_GAIN = true; v = calc_formula(ia, ib, IS_GAIN);`
by tcheyne 5y ago
A lightweight alternative I often use is to make a named constexpr at the callsite.
`constexpr bool IS_GAIN = true;
v = calc_formula(ia, ib, IS_GAIN);`