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:
bool
tuple_sum(std::make_tuple(1, true))
1.0
2.0
double double_val(bool) { return 0.0; }
Loading collection data...
This solution treats
bool
as a number, but I think it makes sense fortuple_sum(std::make_tuple(1, true))
to return1.0
not2.0
. You could fix this by adding: