id summary reporter owner description type status milestone component version severity resolution keywords cc 9780 Error in boost_typetraits std::min example? evan.teran@… John Maddock "In the documentation for boost_typetraits, an example is given on how to improve std::min. However, at least at first glance it looks like there is a typo. The example reads: {{{ template typename common_type::type min(T t, T u) { return t < u ? t : u; } }}} Notice that type `T` is being used for the argument `u`. If I understand the example better, the point is that the return type of `min` will be the correct type. But I would expect the `u` parameter to still have the type `U` **not** `T`. As it is, I believe that this code will cast the second parameter to type `T` when it is passed to the function." Bugs closed To Be Determined type_traits Boost 1.55.0 Cosmetic fixed