Better HN
topnewbestaskshowjobs
Log inSign up

tcheyne

2 karma · joined Sep 20, 2021 (5y ago) · 1 submissions

Submissions

comment 5y ago · link · parent

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);`