Ad
  • Custom User Avatar

    This solution treats bool as a number, but I think it makes sense for tuple_sum(std::make_tuple(1, true)) to return 1.0 not 2.0. You could fix this by adding:

    double double_val(bool) { return 0.0; }