Merge branch 'avoid-std-max_element' into 'master'

Replace std::max_element with boost::first_max_element.

See merge request !19
4 jobs for master in 578 minutes and 4 seconds (queued for 2 seconds)