/usr/include/boost/random/discrete_distribution.hpp:603:32: error: type/value mismatch at argument 1 in template parameter list for ‘template<class First, class ... Others> using first = First’
603 | if(a_iter->first < normalized_average) {
| ^~~~~~~~~~~~~~~~~~
/usr/include/boost/random/discrete_distribution.hpp:603:32: note: expected a type, got ‘normalized_average’
Substituting with std::less(a_iter->first, normalized_average) fixes this issue.
This condition leads to
Substituting with
std::less(a_iter->first, normalized_average)
fixes this issue.