-
Notifications
You must be signed in to change notification settings - Fork 76
type/value mismatch in discrete_distribution.hpp #72
Open
Description
This condition leads to
/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.
Activity
Metadata
Metadata
Assignees
Labels
No labels