Hacker News new | ask | show | jobs
by tcheyne 1740 days 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);`