id summary reporter owner description type status milestone component version severity resolution keywords cc 10081 Boost.Algorithm: clamp: discrepancy in parameter & return types between code and online documentation Martin Moene Marshall Clow "The online documentation of the clamp algorithm of Boost.Algorithm reads [1]: {{{#!cpp template V clamp ( V val, V lo, V hi ); template V clamp ( V val, V lo, V hi, Pred p ); }}} whereas the code [2] passes parameters and return value by const reference. Similarly for the sequence variant. I'm wondering if this is on purpose or that it is a mistake in the documentation? [1] Marshall Clow. [[http://www.boost.org/doc/libs/1_55_0/libs/algorithm/doc/html/algorithm/Misc.html#the_boost_algorithm_library.Misc.clamp|clamp in the Boost Algorithm Library]]. [2] [[http://www.boost.org/doc/libs/1_55_0/boost/algorithm/clamp.hpp|boost/algorithm/clamp.hpp]] " Bugs closed To Be Determined algorithm Boost 1.55.0 Problem fixed